diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-12-22 18:50:58 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-12-22 18:50:58 -0800 |
commit | 39fa11f72bae62985ee5b27103e5959dab30316c (patch) | |
tree | e7fe89d18a2b0bfa892ede044d7e6dcc076bbf7b /tmpl/term.html | |
parent | 5710dc55a73491a0be2259fbd21874bddda54877 (diff) | |
parent | 9d21f8a456530c29c7c03db4896562a4902f6f8a (diff) |
Merge branch 'dev'
Diffstat (limited to 'tmpl/term.html')
-rw-r--r-- | tmpl/term.html | 12 |
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}}«{{/unless}} + <div class="term-reasons"> + {{#each reasons}} + <span class="reasons">{{.}}</span> {{#unless @last}}«{{/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> |