aboutsummaryrefslogtreecommitdiff
path: root/tmpl/kanji.html
blob: 3cc7f96641417aa93c82c64e96adab110e229606 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{{#*inline "kanji"}}
<div class="entry">
    <div class="actions">
        <img src="/mixed/img/entry-current.png" title="Current entry" class="current" alt>
        {{#if addable}}
        <a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji"><img src="/mixed/img/add-kanji.png" alt></a>
        {{/if}}
        {{#if source}}
        <a href="#" title="Source term" class="source-term"><img src="/mixed/img/source-term.png" alt></a>
        {{/if}}
    </div>

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

    <div class="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>
        {{#each tags}}
        <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
        {{/each}}
    </div>

    <div class="glossary">
        {{#if glossary.[1]}}
        <ol>
            {{#each glossary}}
            <li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li>
            {{/each}}
        </ol>
        {{else}}
        <div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
        {{/if}}
    </div>
</div>
{{/inline}}

{{#if definitions}}
{{#each definitions}}
{{#unless @first}}<hr>{{/unless}}
{{> kanji addable=../addable source=../source root=../root}}
{{/each}}
{{else}}
<p>No results found.</p>
{{/if}}