Skip to content

Commit

Permalink
Remove th075.ttinclude
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 2, 2024
1 parent 7caf919 commit 3f77c49
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 40 deletions.
17 changes: 0 additions & 17 deletions TemplateGenerator/Templates/th075.ttinclude

This file was deleted.

25 changes: 15 additions & 10 deletions TemplateGenerator/Templates/th075card.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th075.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th075" #>
<#@ output extension=".html" encoding="utf-8" #>
<#
var levelKeyTotal = Definitions.LevelKeysTotalFirst.First();
var numCards = Definitions.NumCardsPerLevel.Values.Sum();
#>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><#= title #> スコアデータ</title>
<title><#= Definitions.Title #> スコアデータ</title>
<link rel="stylesheet" href="style.css" />
<style>
/* <![CDATA[ */
Expand All @@ -32,7 +37,7 @@
<body>

<header>
<h1><#= title #> スコアデータ</h1>
<h1><#= Definitions.Title #> スコアデータ</h1>
<hr />
<nav>
<ul>
Expand All @@ -42,7 +47,7 @@
</ul>
<ul>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<li><a href="#<#= chara.Value.Id #>"><#= chara.Value.ShortName #></a></li>
Expand All @@ -60,7 +65,7 @@
<h2 id="Card">御札戦歴</h2>

<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<table class="rate_per_chara">
Expand Down Expand Up @@ -134,26 +139,26 @@
<tr>
<th></th>
<#
foreach (var levelKey in levelKeyOrderTotalLast)
foreach (var levelKey in Definitions.LevelKeysTotalLast)
{
#>
<th class="level"><#= levelsWithTotal[levelKey] #></th>
<th class="level"><#= Definitions.LevelWithTotalNames[levelKey] #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
<td class="character"><#= chara.Value.LongName #></td>
<#
foreach (var levelKey in levelKeyOrderTotalLast)
foreach (var levelKey in Definitions.LevelKeysTotalLast)
{
var cards = (levelKey == levelKeyTotal) ? numCards : cardsPerLevel[levelKey];
var cards = (levelKey == levelKeyTotal) ? numCards : Definitions.NumCardsPerLevel[levelKey];
#>
<td class="rate"><#
#>%T75CRG<#= levelKey #><#= chara.Key #>3 / <#
Expand Down
13 changes: 7 additions & 6 deletions TemplateGenerator/Templates/th075score1.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th075.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th075" #>
<#@ output extension=".html" encoding="utf-8" #>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><#= title #> スコアデータ</title>
<title><#= Definitions.Title #> スコアデータ</title>
<link rel="stylesheet" href="style.css" />
<style>
/* <![CDATA[ */
Expand All @@ -27,7 +28,7 @@
<body>

<header>
<h1><#= title #> スコアデータ</h1>
<h1><#= Definitions.Title #> スコアデータ</h1>
<hr />
<nav>
<ul>
Expand All @@ -37,7 +38,7 @@
</ul>
<ul>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<li><a href="#<#= level.Value #>"><#= level.Value #></a></li>
Expand All @@ -54,7 +55,7 @@
<h2>難易度別スコア</h2>

<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<table class="score_per_level">
Expand All @@ -73,7 +74,7 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
Expand Down
15 changes: 8 additions & 7 deletions TemplateGenerator/Templates/th075score2.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th075.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th075" #>
<#@ output extension=".html" encoding="utf-8" #>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><#= title #> スコアデータ</title>
<title><#= Definitions.Title #> スコアデータ</title>
<link rel="stylesheet" href="style.css" />
<style>
/* <![CDATA[ */
Expand All @@ -24,7 +25,7 @@
<body>

<header>
<h1><#= title #> スコアデータ</h1>
<h1><#= Definitions.Title #> スコアデータ</h1>
<hr />
<nav>
<ul>
Expand All @@ -34,7 +35,7 @@
</ul>
<ul>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<li><a href="#<#= level.Value #>"><#= level.Value #></a></li>
Expand All @@ -48,14 +49,14 @@
<main>

<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<section>
<h2 id="<#= level.Value #>"><#= level.Value #></h2>

<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<table class="score_per_level">
Expand Down Expand Up @@ -93,7 +94,7 @@
</section>

<#
if (level.Key != levels.Last().Key)
if (level.Key != Definitions.LevelNames.Last().Key)
{
#>
<hr />
Expand Down

0 comments on commit 3f77c49

Please sign in to comment.