From a55576260a3f2d5acfd256ac93a58302dd761624 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 21 Sep 2017 20:52:18 -0700 Subject: work on kanji page --- tmpl/kanji.html | 67 ++++++++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 32 deletions(-) (limited to 'tmpl') diff --git a/tmpl/kanji.html b/tmpl/kanji.html index c46ce6a7..7c801355 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -1,3 +1,18 @@ +{{#*inline "table"}} +{{#if data}} + + {{#each data}} + + + + + {{/each}} +
{{#if notes}}{{notes}}{{else}}{{name}}{{/if}}{{value}}
+{{else}} +No data found +{{/if}} +{{/inline}} + {{#*inline "kanji"}}
@@ -31,52 +46,40 @@ - - + + - - + + + + + + + + + + + + - +
Readings GlossaryStatisticsOn'YomiKun'Yomi
-
- {{#each kunyomi}} -
{{.}}
- {{/each}} - {{#each onyomi}} -
{{.}}
- {{/each}} -
-
{{#if glossary.[1]}} -
    - {{#each glossary}} -
  1. {{.}}
  2. - {{/each}} -
+
    {{#each glossary}}
  1. {{.}}
  2. {{/each}}
{{else}} {{glossary.[0]}} {{/if}}
+
{{#each onyomi}}
{{.}}
{{/each}}
+
+
{{#each kunyomi}}
{{.}}
{{/each}}
+
StatsQueryCode
{{> table data=stats.misc}}{{> table data=stats.query}}{{> table data=stats.code}}
Dictionary Indices
- {{#if stats.index}} - - {{#each stats.index}} - - - - - {{/each}} -
{{#if notes}}{{notes}}{{else}}{{name}}{{/if}}{{value}}
- {{else}} - No index data found - {{/if}} -
{{> table data=stats.index}}
-- cgit v1.2.3