summaryrefslogtreecommitdiff
path: root/util/tmpl/term.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 19:23:13 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 19:23:13 -0700
commit6908d9e7e345f46e2b4c635fbfe1fbed924ab5bd (patch)
treead62798e5ab9df57849a7fb6c01fa4b8bc267a40 /util/tmpl/term.html
parent8292be0243c3478845a851aadcbf476660d86d7f (diff)
WIP
Diffstat (limited to 'util/tmpl/term.html')
-rw-r--r--util/tmpl/term.html52
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}}&laquo;{{/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}}&laquo;{{/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>