summaryrefslogtreecommitdiff
path: root/util/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 22:06:49 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 22:06:49 -0700
commit4ef620d74cac15bcd6b860e569a09aa561f2ba98 (patch)
tree0b8be5b56074a3485c16c033ceaaf3ec2a406bbe /util/tmpl
parentf466fe721885877d473e66d22caef060919524ea (diff)
Styling
Diffstat (limited to 'util/tmpl')
-rw-r--r--util/tmpl/kanji.html44
1 files changed, 23 insertions, 21 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index 603872ae..b52f29f5 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,31 +1,33 @@
<div class="definition">
<div class="kanji-info kanji-glyph">{{character}}</div>
- {{#if glossary}}
<dl class="kanji-info">
+ {{#if glossary}}
<dt>Meanings</dt>
- {{#each glossary}}
- <dd>{{.}}</dd>
- {{/each}}
- </dl>
- {{/if}}
+ <dd>
+ {{#each glossary}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </dd>
+ {{/if}}
- {{#if kunyomi}}
- <dl class="kanji-info">
- <dt>Kun</dt>
- {{#each kunyomi}}
- <dd>{{.}}</dd>
- {{/each}}
- </dl>
- {{/if}}
+ {{#if kunyomi}}
+ <dt>Kunyomi</dt>
+ <dd>
+ {{#each kunyomi}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </dd>
+ {{/if}}
- {{#if onyomi}}
- <dl class="kanji-info">
- <dt>On</dt>
- {{#each onyomi}}
- <dd>{{.}}</dd>
- {{/each}}
+ {{#if onyomi}}
+ <dt>Onyomi</dt>
+ <dd>
+ {{#each onyomi}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </dd>
+ {{/if}}
</dl>
- {{/if}}
</div>
</div>