summaryrefslogtreecommitdiff
path: root/tmpl/term.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-08 18:39:59 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-08 18:39:59 -0800
commit67ca7adc4cabb79a87b51ebd9b112e641de31af9 (patch)
tree652ea04970a25f2f479cf71cbf9e9dbeedf794af /tmpl/term.html
parent53a8e9061c482400186c8b041be520a519795c07 (diff)
WIP
Diffstat (limited to 'tmpl/term.html')
-rw-r--r--tmpl/term.html18
1 files changed, 3 insertions, 15 deletions
diff --git a/tmpl/term.html b/tmpl/term.html
index a6ae2d26..59ac80df 100644
--- a/tmpl/term.html
+++ b/tmpl/term.html
@@ -15,27 +15,15 @@
<div class="term-expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div>
{{/if}}
+ {{#if reasons}}
<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-{{category}}" title="{{notes}}">{{name}}</span>
- {{/each}}
- </div>
+ {{/if}}
<div class="term-glossary">
- {{#if glossary.[1]}}
- <ol>
- {{#each glossary}}
- <li><span class="term-glossary-item">{{.}}</span></li>
- {{/each}}
- </ol>
- {{else}}
- <p>{{glossary.[0]}}</p>
- {{/if}}
+ {{> term-definition.html}}
</div>
</div>