Skip to content

Commit

Permalink
Remove th06.include
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 2, 2024
1 parent bdbdd26 commit 0c8325b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 48 deletions.
21 changes: 0 additions & 21 deletions TemplateGenerator/Templates/th06.ttinclude

This file was deleted.

29 changes: 17 additions & 12 deletions TemplateGenerator/Templates/th06score1.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="th06.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th06" #>
<#@ output extension=".html" encoding="utf-8" #>
<#
var stageKeyTotal = Definitions.StageKeysTotalFirst.First();
var numCards = Definitions.NumCardsPerStage.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 @@ -28,7 +33,7 @@
<body>

<header>
<h1><#= title #> スコアデータ</h1>
<h1><#= Definitions.Title #> スコアデータ</h1>
<hr />
<nav>
<ul>
Expand All @@ -38,7 +43,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 @@ -57,7 +62,7 @@
<h2>難易度別スコア</h2>

<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<table class="score_per_level">
Expand All @@ -72,7 +77,7 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
Expand Down Expand Up @@ -147,22 +152,22 @@
</thead>
<tbody>
<#
foreach (var stage in stages)
foreach (var stage in Definitions.StageNames)
{
#>
<tr>
<td class="stage"><#= stage.Value #></td>
<td class="rate"><#
#>%T06CRG<#= stage.Key #>1 / <#
#>%T06CRG<#= stage.Key #>2 / <#
#><#= cardsPerStage[stage.Key] #><#
#><#= Definitions.NumCardsPerStage[stage.Key] #><#
#></td>
</tr>
<#
}
#>
<tr>
<td><#= stagesWithTotal[stageKeyTotal] #></td>
<td><#= Definitions.StageWithTotalNames[stageKeyTotal] #></td>
<td class="rate"><#
#>%T06CRG<#= stageKeyTotal #>1 / <#
#>%T06CRG<#= stageKeyTotal #>2 / <#
Expand All @@ -183,7 +188,7 @@
<tr>
<th class="character">Character</th>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<th class="level"><#= level.Value #></th>
Expand All @@ -194,13 +199,13 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
<td class="character"><#= chara.Value #></td>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<td class="stage">%T06CLEAR<#= level.Key #><#= chara.Key #></td>
Expand Down
15 changes: 8 additions & 7 deletions TemplateGenerator/Templates/th06score2.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="th06.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th06" #>
<#@ 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 @@ -92,7 +93,7 @@
</section>

<#
if (level.Key != levels.Last().Key)
if (level.Key != Definitions.LevelNames.Last().Key)
{
#>
<hr />
Expand Down
17 changes: 9 additions & 8 deletions TemplateGenerator/Templates/th06score3.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="th06.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th06" #>
<#@ 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 @@ -22,7 +23,7 @@
<body>

<header>
<h1><#= title #> スコアデータ</h1>
<h1><#= Definitions.Title #> スコアデータ</h1>
<hr />
<nav>
<ul>
Expand All @@ -32,7 +33,7 @@
</ul>
<ul>
<#
foreach (var level in levelsPractice)
foreach (var level in Definitions.LevelPracticeNames)
{
#>
<li><a href="#<#= level.Value #>"><#= level.Value #></a></li>
Expand All @@ -46,14 +47,14 @@
<main>

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

<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<table class="practice">
Expand All @@ -66,7 +67,7 @@
</thead>
<tbody>
<#
foreach (var stage in stagesPractice)
foreach (var stage in Definitions.StagePracticeNames)
{
if (!Definitions.CanPractice(level.Key, stage.Key))
continue;
Expand All @@ -87,7 +88,7 @@
</section>

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

0 comments on commit 0c8325b

Please sign in to comment.