From 39e38d56657b9b11f49af96d84c819e6b6fcec8d Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 15 Sep 2017 13:18:21 -0700 Subject: improve kanji template --- tmpl/kanji.html | 73 ++++++++++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 32 deletions(-) (limited to 'tmpl') diff --git a/tmpl/kanji.html b/tmpl/kanji.html index bb62f488..4eb53048 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -13,44 +13,53 @@
{{character}}
-
- - - - - - - - - -
Kunyomi: - {{#each kunyomi}} - {{.}}{{#unless @last}}, {{/unless}} - {{/each}} -
Onyomi: - {{#each onyomi}} - {{.}}{{#unless @last}}, {{/unless}} - {{/each}} -
-
-
{{#each tags}} {{name}} {{/each}}
-
- {{#if glossary.[1]}} -
    - {{#each glossary}} -
  1. {{#multiLine}}{{.}}{{/multiLine}}
  2. - {{/each}} -
- {{else}} -
{{#multiLine}}{{glossary.[0]}}{{/multiLine}}
- {{/if}} -
+
+ + + + + + + + + + + + +
ReadingsGlossaryStatistics
+ {{#if kunyomi}} +
+
Kun
+ {{#each kunyomi}} +
{{.}}
+ {{/each}} +
+ {{/if}} + {{#if onyomi}} +
+
On
+ {{#each onyomi}} +
{{.}}
+ {{/each}} +
+ {{/if}} +
+ {{#if glossary.[1]}} +
    + {{#each glossary}} +
  1. {{.}}
  2. + {{/each}} +
+ {{else}} + {{glossary.[0]}} + {{/if}} +
{{#if debug}}
{{#dumpObject}}{{{.}}}{{/dumpObject}}
-- cgit v1.2.3