{{#*inline "kanji"}}
<div class="entry" data-type="kanji">
    <div class="actions">
        <img src="/mixed/img/entry-current.png" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
        {{#if addable}}
        <a href="#" class="action-add-note pending disabled" data-mode="kanji"><img src="/mixed/img/add-kanji.png" title="Add Kanji (Alt + K)" alt></a>
        {{/if}}
        {{#if source}}
        <a href="#" class="source-term"><img src="/mixed/img/source-term.png" title="Source term (Alt + B)" 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}}