summaryrefslogtreecommitdiff
path: root/util/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-28 20:32:04 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-28 20:32:04 -0700
commit240aca8415be9b27f2b0f68509f7068488d42444 (patch)
tree93276f6542ab9e98bfc4703a2f85c2e15e64ad29 /util/tmpl
parent4ef620d74cac15bcd6b860e569a09aa561f2ba98 (diff)
Kanji page cleanup
Diffstat (limited to 'util/tmpl')
-rw-r--r--util/tmpl/kanji.html59
1 files changed, 30 insertions, 29 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index b52f29f5..c1883b19 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,33 +1,34 @@
-<div class="definition">
- <div class="kanji-info kanji-glyph">{{character}}</div>
+<div class="kanji-definition">
+ <div class="kanji-glyph">{{character}}</div>
+ <div class="kanji-info">
+ <dl>
+ {{#if glossary}}
+ <dt>Meanings</dt>
+ <dd>
+ {{#each glossary}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </dd>
+ {{/if}}
- <dl class="kanji-info">
- {{#if glossary}}
- <dt>Meanings</dt>
- <dd>
- {{#each glossary}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
+ {{#if kunyomi}}
+ <dt>Kunyomi</dt>
+ <dd>
+ {{#each kunyomi}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </dd>
+ {{/if}}
- {{#if kunyomi}}
- <dt>Kunyomi</dt>
- <dd>
- {{#each kunyomi}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
-
- {{#if onyomi}}
- <dt>Onyomi</dt>
- <dd>
- {{#each onyomi}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
- </dl>
+ {{#if onyomi}}
+ <dt>Onyomi</dt>
+ <dd>
+ {{#each onyomi}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </dd>
+ {{/if}}
+ </dl>
+ </div>
</div>
</div>