diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-09-15 13:18:21 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-09-15 13:18:21 -0700 |
commit | 39e38d56657b9b11f49af96d84c819e6b6fcec8d (patch) | |
tree | eede1627219e59ccc4411d2ec7d4bc4e30848cc5 /tmpl | |
parent | d3d760ed6c779e03713ef4946a76bf89a4647bcb (diff) |
improve kanji template
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/kanji.html | 73 |
1 files changed, 41 insertions, 32 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html index bb62f488..4eb53048 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -13,44 +13,53 @@ <div class="glyph">{{character}}</div> - <div class="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> - <div> {{#each tags}} <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span> {{/each}} </div> - <div class="glossary"> - {{#if glossary.[1]}} - <ol> - {{#each glossary}} - <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li> - {{/each}} - </ol> - {{else}} - <div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div> - {{/if}} - </div> + <br> + + <table class="table table-condensed"> + <tr> + <th>Readings</th> + <th>Glossary</th> + <th>Statistics</th> + </tr> + <tr> + <td class="reading"> + {{#if kunyomi}} + <dl> + <dt>Kun</dt> + {{#each kunyomi}} + <dd>{{.}}</dd> + {{/each}} + </dl> + {{/if}} + {{#if onyomi}} + <dl> + <dt>On</dt> + {{#each onyomi}} + <dd>{{.}}</dd> + {{/each}} + </dl> + {{/if}} + </td> + <td class="glossary"> + {{#if glossary.[1]}} + <ol> + {{#each glossary}} + <li><span class="glossary-item">{{.}}</span></li> + {{/each}} + </ol> + {{else}} + <span class="glossary-item">{{glossary.[0]}}</span> + {{/if}} + </td> + <td></td> + </tr> + </table> {{#if debug}} <pre>{{#dumpObject}}{{{.}}}{{/dumpObject}}</pre> |