aboutsummaryrefslogtreecommitdiff
path: root/tmpl/kanji.html
blob: 80c642bdfdffe3892f5e8052485e4ea59b8e923d (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
44
45
46
<div class="kanji-definition">
    {{#with options}}
    <div class="action-bar" data-sequence="{{../sequence}}">
        {{#if enableAnkiConnect}}
        <a href="#" title="Add Kanji" class="action-add-note disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/fg/img/add_kanji.png"></a>
        {{/if}}
    </div>
    {{/with}}

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

    <div class="kanji-reading">
        <table>
            <tr>
                <th>Kunyomi:</th>
                <td>
                    {{#each kunyomi}}
                    {{.}}{{#unless @last}}, {{/unless}}
                    {{/each}}
                </td>
            </tr>
            <tr>
                <th>Onyomi:</th>
                <td>
                    {{#each onyomi}}
                    {{.}}{{#unless @last}}, {{/unless}}
                    {{/each}}
                </td>
            </tr>
        </table>
    </div>

    <div class="kanji-tags">
        {{#each tags}}
        <span class="tag tag-{{class}}" title="{{desc}}">{{name}}</span>
        {{/each}}
    </div>

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