aboutsummaryrefslogtreecommitdiff
path: root/util/tmpl/kanji.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 19:23:13 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 19:23:13 -0700
commit6908d9e7e345f46e2b4c635fbfe1fbed924ab5bd (patch)
treead62798e5ab9df57849a7fb6c01fa4b8bc267a40 /util/tmpl/kanji.html
parent8292be0243c3478845a851aadcbf476660d86d7f (diff)
WIP
Diffstat (limited to 'util/tmpl/kanji.html')
-rw-r--r--util/tmpl/kanji.html36
1 files changed, 27 insertions, 9 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index 66e4647e..0e85e966 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,13 +1,31 @@
-<div class="kanji">{{character}}</div>
+<div class="definition">
+ <div class="kanji">{{character}}</div>
-<div class="reading">
- {{kunyomi}}
-</div>
+ <div class="readings">
+ {{#if kunyomi}}
+ <dl>
+ <dt>Kunyomi</dt>
+ {{#each kunyomi}}
+ <dd>{{.}}</dd>
+ {{/each}}
+ </dl>
+ {{/if}}
-<div class="reading">
- {{onyomi}}
-</div>
+ {{#if onyomi}}
+ <dl>
+ <dt>Onyomi</dt>
+ {{#each onyomi}}
+ <dd>{{.}}</dd>
+ {{/each}}
+ </dl>
+ {{/if}}
+ </div>
-<div class="glossary">
- {{glossary}}
+ <div class="glossary">
+ <ol>
+ {{#each glossary}}
+ <li><span>{{.}}</span></li>
+ {{/each}}
+ </ol>
+ </div>
</div>