diff options
Diffstat (limited to 'util/tmpl/term.html')
-rw-r--r-- | util/tmpl/term.html | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/util/tmpl/term.html b/util/tmpl/term.html index 054f7510..00a9d156 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -1,29 +1,31 @@ -{{#if reading}} -<div class="term"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div> -{{else}} -<div class="term">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div> -{{/if}} +<div class="definition"> + {{#if reading}} + <div class="term"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div> + {{else}} + <div class="term">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div> + {{/if}} -{{#if rules}} -<div class="rules"> - {{#each rules}} - <span class="rule">{{.}}</span> {{#unless @last}}«{{/unless}} - {{/each}} -</div> -{{/if}} - -{{#if tags}} -<div class="tags"> - {{#each tags}} - <span class="tag tag-{{class}}" title="{{desc}}">{{name}}</span> - {{/each}} -</div> -{{/if}} + {{#if rules}} + <div class="rules"> + {{#each rules}} + <span class="rule">{{.}}</span> {{#unless @last}}«{{/unless}} + {{/each}} + </div> + {{/if}} -<div class="glossary"> - <ol> - {{#each glossary}} - <li><span>{{.}}</span></li> + {{#if tags}} + <div class="tags"> + {{#each tags}} + <span class="tag tag-{{class}}" title="{{desc}}">{{name}}</span> {{/each}} - </ol> + </div> + {{/if}} + + <div class="glossary"> + <ol> + {{#each glossary}} + <li><span>{{.}}</span></li> + {{/each}} + </ol> + </div> </div> |