aboutsummaryrefslogtreecommitdiff
path: root/tmpl/term.html
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/term.html')
-rw-r--r--tmpl/term.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/tmpl/term.html b/tmpl/term.html
index 7d60e42a..e4a0d02b 100644
--- a/tmpl/term.html
+++ b/tmpl/term.html
@@ -15,23 +15,27 @@
<div class="term-expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div>
{{/if}}
- <div class="term-rules">
- {{#each rules}}
- <span class="rule">{{.}}</span> {{#unless @last}}&laquo;{{/unless}}
+ <div class="term-reasons">
+ {{#each reasons}}
+ <span class="reasons">{{.}}</span> {{#unless @last}}&laquo;{{/unless}}
{{/each}}
</div>
<div class="term-tags">
{{#each tags}}
- <span class="tag tag-{{class}}" title="{{desc}}">{{name}}</span>
+ <span class="tag tag-{{category}}" title="{{notes}}">{{name}}</span>
{{/each}}
</div>
<div class="term-glossary">
+ {{#if glossary.[1]}}
<ol>
{{#each glossary}}
<li><span>{{.}}</span></li>
{{/each}}
</ol>
+ {{else}}
+ <p>{{glossary.[0]}}</p>
+ {{/if}}
</div>
</div>