94 lines
2.8 KiB
HTML
94 lines
2.8 KiB
HTML
{{#*inline "kanji"}}
|
|
<div class="entry" data-type="kanji">
|
|
<div class="actions">
|
|
{{#if addable}}
|
|
<a href="#" class="action-view-note pending disabled"><img src="/mixed/img/view-note.png" title="View added note (Alt + V)" alt></a>
|
|
<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}}
|
|
<img src="/mixed/img/entry-current.png" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
|
|
</div>
|
|
|
|
<div class="glyph">{{character}}</div>
|
|
|
|
<div>
|
|
{{#each tags}}
|
|
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
|
|
{{/each}}
|
|
</div>
|
|
|
|
<table class="table table-condensed glyph-data">
|
|
<tr>
|
|
<th>Readings</th>
|
|
<th>Glossary</th>
|
|
<th>Statistics</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="reading">
|
|
<dl>
|
|
{{#each kunyomi}}
|
|
<dd>{{.}}</dd>
|
|
{{/each}}
|
|
{{#each onyomi}}
|
|
<dd>{{.}}</dd>
|
|
{{/each}}
|
|
</dl>
|
|
</td>
|
|
<td class="glossary">
|
|
{{#if glossary.[1]}}
|
|
<ol>
|
|
{{#each glossary}}
|
|
<li><span class="glossary-item">{{.}}</span></li>
|
|
{{/each}}
|
|
</ol>
|
|
{{else}}
|
|
<span class="glossary-item">{{glossary.[0]}}</span>
|
|
{{/if}}
|
|
</td>
|
|
<td>
|
|
<dl>
|
|
{{#if stats}}
|
|
{{#each stats}}
|
|
<dd><b>{{@key}}</b>: {{.}}</dd>
|
|
{{/each}}
|
|
{{else}}
|
|
No statistical data found
|
|
{{/if}}
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="3">Dictionary Indices</th>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">
|
|
<dl>
|
|
{{#if indices}}
|
|
{{#each indices}}
|
|
<dd><b>{{@key}}</b>: {{.}}</dd>
|
|
{{/each}}
|
|
{{else}}
|
|
No index data found
|
|
{{/if}}
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{{#if debug}}
|
|
<pre>{{#dumpObject}}{{{.}}}{{/dumpObject}}</pre>
|
|
{{/if}}
|
|
</div>
|
|
{{/inline}}
|
|
|
|
{{#if definitions}}
|
|
{{#each definitions}}
|
|
{{#unless @first}}<hr>{{/unless}}
|
|
{{> kanji debug=../debug addable=../addable source=../source root=../root}}
|
|
{{/each}}
|
|
{{else}}
|
|
<p class="note">No results found</p>
|
|
{{/if}}
|