From 60e23ab42c86fbc74a6e16d6fd29fcc6761bfb36 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 8 Jan 2017 22:44:13 -0800 Subject: simplify templates --- tmpl/kanji-list.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) (limited to 'tmpl/kanji-list.html') diff --git a/tmpl/kanji-list.html b/tmpl/kanji-list.html index 1df22e68..ffc25c24 100644 --- a/tmpl/kanji-list.html +++ b/tmpl/kanji-list.html @@ -1,7 +1,58 @@ +{{#*inline kanji}} +
+
+ {{#if addable}} + + {{/if}} +
+ +
{{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. {{.}}
  2. + {{/each}} +
+ {{else}} +
{{glossary.[0]}}
+ {{/if}} +
+
+{{/inline}} + {{#if definitions}} {{#each definitions}} {{#unless @first}}
{{/unless}} - {{> kanji.html addable=../addable root=../root}} + {{> kanji addable=../addable root=../root}} {{/each}} {{else}}

No results found

-- cgit v1.2.3