aboutsummaryrefslogtreecommitdiff
path: root/tmpl/kanji.html
blob: 81ead58482963e2bc605ef1f9744617c3294a9c8 (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
32
33
34
35
36
37
38
39
40
41
42
43
<div class="kanji-definition">
    {{#with options}}
    {{#if enableAnkiConnect}}
    <div class="action-bar">
        <a href="#" title="Add Kanji" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_kanji.png"></a>
    </div>
    {{/if}}
    {{/with}}

    <div class="kanji-glyph">{{character}}</div>

    <div class="kanji-info">
        <dl>
            {{#if glossary}}
            <dt>Meanings</dt>
            <dd>
                {{#each glossary}}
                {{.}}{{#unless @last}}, {{/unless}}
                {{/each}}
            </dd>
            {{/if}}

            {{#if kunyomi}}
            <dt>Kun'yomi</dt>
            <dd class="kanji-reading">
                {{#each kunyomi}}
                {{.}}{{#unless @last}}, {{/unless}}
                {{/each}}
            </dd>
            {{/if}}

            {{#if onyomi}}
            <dt>On'yomi</dt>
            <dd class="kanji-reading">
                {{#each onyomi}}
                {{.}}{{#unless @last}}, {{/unless}}
                {{/each}}
            </dd>
            {{/if}}
        </dl>
    </div>
</div>
</div>