summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-09-17 19:16:08 -0700
committerAlex Yatskov <alex@foosoft.net>2017-09-17 19:16:08 -0700
commitd9d16613f8aa129de5dc1edb38d66f69d2983091 (patch)
tree3936a737082cde393f92ba54869db10cf90f6f89 /tmpl
parent269a4f0b9ba1876bd5a6e72e34537056a75081fc (diff)
wip
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/kanji.html44
1 files changed, 30 insertions, 14 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index ad6dcb26..57b6b7dc 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -13,11 +13,21 @@
<div class="glyph">{{character}}</div>
+ {{#if frequencies}}
+ <div>
+ {{#each frequencies}}
+ <span class="label label-default tag-frequency">{{dictionary}}:{{frequency}}</span>
+ {{/each}}
+ </div>
+ {{/if}}
+
+ {{#if tags}}
<div>
{{#each tags}}
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
{{/each}}
</div>
+ {{/if}}
<table class="table table-condensed glyph-data">
<tr>
@@ -48,15 +58,18 @@
{{/if}}
</td>
<td>
- <dl>
- {{#if stats}}
+ {{#if stats}}
+ <table class="info-output">
{{#each stats}}
- <dd><b>{{@key}}</b>: {{.}}</dd>
+ <tr>
+ <th>{{#if notes}}{{notes}}{{else}}{{name}}{{/if}}</th>
+ <td>{{value}}</td>
+ </tr>
{{/each}}
- {{else}}
- No statistical data found
- {{/if}}
- </dl>
+ </table>
+ {{else}}
+ No statistical data found
+ {{/if}}
</td>
</tr>
<tr>
@@ -64,15 +77,18 @@
</tr>
<tr>
<td colspan="3">
- <dl>
- {{#if indices}}
+ {{#if indices}}
+ <table class="info-output">
{{#each indices}}
- <dd><b>{{@key}}</b>: {{.}}</dd>
+ <tr>
+ <th>{{#if notes}}{{notes}}{{else}}{{name}}{{/if}}</th>
+ <td>{{value}}</td>
+ </tr>
{{/each}}
- {{else}}
- No index data found
- {{/if}}
- </dl>
+ </table>
+ {{else}}
+ No index data found
+ {{/if}}
</td>
</tr>
</table>