summaryrefslogtreecommitdiff
path: root/util/tmpl/term.html
blob: 00a9d156e55dc6f5bd54323ea54c718a44afeb4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<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}}

    <div class="glossary">
        <ol>
            {{#each glossary}}
            <li><span>{{.}}</span></li>
            {{/each}}
        </ol>
    </div>
</div>