diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-24 19:23:13 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-24 19:23:13 -0700 |
commit | 6908d9e7e345f46e2b4c635fbfe1fbed924ab5bd (patch) | |
tree | ad62798e5ab9df57849a7fb6c01fa4b8bc267a40 /util/tmpl/term.html | |
parent | 8292be0243c3478845a851aadcbf476660d86d7f (diff) |
WIP
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> |