aboutsummaryrefslogtreecommitdiff
path: root/tmpl/kanji.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-07 19:56:50 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-07 19:56:50 -0700
commit29135ff84ff51dfdbf271490bc53138e306e75d8 (patch)
tree9a92a7ce668af1e4cccb1c226665b382244ddf53 /tmpl/kanji.html
parenta9e86544c176ad8295c1df83924778fa45421461 (diff)
Updating kanji display
Diffstat (limited to 'tmpl/kanji.html')
-rw-r--r--tmpl/kanji.html58
1 files changed, 31 insertions, 27 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index 3e148aae..0a0cfe11 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -9,34 +9,38 @@
<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}}
+ <div class="kanji-reading">
+ <table>
+ <tr>
+ <th>Kunyomi:</th>
+ <td>
+ {{#each kunyomi}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </td>
+ </tr>
+ <tr>
+ <th>Onyomi:</th>
+ <td>
+ {{#each onyomi}}
+ {{.}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ </td>
+ </tr>
+ </table>
+ </div>
- {{#if kunyomi}}
- <dt>Kun'yomi</dt>
- <dd class="kanji-reading">
- {{#each kunyomi}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
+ <div class="kanji-tags">
+ {{#each tags}}
+ <span class="tag tag-{{class}}" title="{{desc}}">{{name}}</span>
+ {{/each}}
+ </div>
- {{#if onyomi}}
- <dt>On'yomi</dt>
- <dd class="kanji-reading">
- {{#each onyomi}}
- {{.}}{{#unless @last}}, {{/unless}}
- {{/each}}
- </dd>
- {{/if}}
- </dl>
+ <div class="kanji-glossary">
+ <ol>
+ {{#each glossary}}
+ <li><span>{{.}}</span></li>
+ {{/each}}
+ </ol>
</div>
</div>