Skip to content

Commit

Permalink
Remove th175.ttinclude
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 2, 2024
1 parent 1653187 commit c98853b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 29 deletions.
14 changes: 0 additions & 14 deletions TemplateGenerator/Templates/th175.ttinclude

This file was deleted.

20 changes: 12 additions & 8 deletions TemplateGenerator/Templates/th175score1.tt
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th175.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th175" #>
<#@ output extension=".html" encoding="utf-8" #>
<#
var charaKeyTotal = Definitions.CharacterKeysTotalFirst.First();
#>
<!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 +28,7 @@
<body>

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

<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<table class="score_per_level">
Expand All @@ -65,7 +69,7 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
Expand Down Expand Up @@ -101,7 +105,7 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
Expand All @@ -117,7 +121,7 @@
</tbody>
<tfoot>
<tr>
<td class="character"><#= charactersWithTotal[charaKeyTotal] #></td>
<td class="character"><#= Definitions.CharacterWithTotalNames[charaKeyTotal] #></td>
<td class="count">%T175CHR<#= charaKeyTotal #>1</td>
<td class="count">%T175CHR<#= charaKeyTotal #>2</td>
<td class="count">%T175CHR<#= charaKeyTotal #>3</td>
Expand Down
15 changes: 8 additions & 7 deletions TemplateGenerator/Templates/th175score2.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="th175.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th175" #>
<#@ 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 @@ -23,7 +24,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 levels)
foreach (var level in Definitions.LevelNames)
{
#>
<li><a href="#<#= level.Value #>"><#= level.Value #></a></li>
Expand All @@ -46,14 +47,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 @@ -88,7 +89,7 @@
</section>

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

0 comments on commit c98853b

Please sign in to comment.