Skip to content

Commit

Permalink
Remove th09.ttinclude
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 2, 2024
1 parent 3c7f057 commit 772d2e4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
8 changes: 0 additions & 8 deletions TemplateGenerator/Templates/th09.ttinclude

This file was deleted.

25 changes: 13 additions & 12 deletions TemplateGenerator/Templates/th09score1.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="th09.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th09" #>
<#@ 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 @@ -29,7 +30,7 @@
<body>

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

<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<table class="score_per_level">
Expand All @@ -72,7 +73,7 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
Expand Down Expand Up @@ -103,7 +104,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 @@ -114,13 +115,13 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
<td class="character"><#= chara.Value.LongName #></td>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<td class="count">%T09CLEAR<#= level.Key #><#= chara.Key #>1</td>
Expand All @@ -140,7 +141,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 @@ -151,13 +152,13 @@
</thead>
<tbody>
<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<tr>
<td class="character"><#= chara.Value.LongName #></td>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<td class="stage">%T09CLEAR<#= level.Key #><#= chara.Key #>2</td>
Expand Down
17 changes: 9 additions & 8 deletions TemplateGenerator/Templates/th09score2.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="th09.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th09" #>
<#@ 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 @@ -33,7 +34,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 @@ -47,14 +48,14 @@
<main>

<#
foreach (var chara in characters)
foreach (var chara in Definitions.CharacterNames)
{
#>
<section>
<h2 id="<#= chara.Value.Id #>"><#= chara.Value.LongName #></h2>

<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<table class="score_per_level">
Expand All @@ -73,7 +74,7 @@
{
#>
<tr>
<td class="number"><#= rankOrdinals[rank] #></td>
<td class="number"><#= Definitions.RankOrdinals[rank] #></td>
<td class="name">%T09SCR<#= level.Key #><#= chara.Key #><#= rank #>1</td>
<td class="score">%T09SCR<#= level.Key #><#= chara.Key #><#= rank #>2</td>
<td class="date">%T09SCR<#= level.Key #><#= chara.Key #><#= rank #>3</td>
Expand All @@ -90,7 +91,7 @@
</section>

<#
if (chara.Key != characters.Last().Key)
if (chara.Key != Definitions.CharacterNames.Last().Key)
{
#>
<hr />
Expand Down

0 comments on commit 772d2e4

Please sign in to comment.