yomichan/tmpl/kanji.html

100 lines
3.0 KiB
HTML
Raw Normal View History

2017-01-10 03:05:21 +00:00
{{#*inline "kanji"}}
2017-03-26 01:08:42 +00:00
<div class="entry" data-type="kanji">
2017-03-04 04:25:14 +00:00
<div class="actions">
2017-01-09 06:44:13 +00:00
{{#if addable}}
2017-07-02 01:27:49 +00:00
<a href="#" class="action-view-note pending disabled"><img src="/mixed/img/view-note.png" title="View added note (Alt + V)" alt></a>
2017-03-26 01:08:42 +00:00
<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>
2017-01-09 06:44:13 +00:00
{{/if}}
2017-03-18 04:03:52 +00:00
{{#if source}}
2017-03-26 01:08:42 +00:00
<a href="#" class="source-term"><img src="/mixed/img/source-term.png" title="Source term (Alt + B)" alt></a>
2017-03-18 04:03:52 +00:00
{{/if}}
2017-07-02 01:27:49 +00:00
<img src="/mixed/img/entry-current.png" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
2017-01-09 06:44:13 +00:00
</div>
2017-03-04 04:25:14 +00:00
<div class="glyph">{{character}}</div>
2017-01-09 06:44:13 +00:00
2017-03-04 04:25:14 +00:00
<div>
2017-01-09 06:44:13 +00:00
{{#each tags}}
2017-03-18 16:48:53 +00:00
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
2017-01-09 06:44:13 +00:00
{{/each}}
</div>
2017-09-15 21:03:05 +00:00
<table class="table table-condensed glyph-data">
2017-09-15 20:18:21 +00:00
<tr>
<th>Readings</th>
<th>Glossary</th>
<th>Statistics</th>
</tr>
<tr>
<td class="reading">
<dl>
2017-09-15 21:06:10 +00:00
{{#if kunyomi}}
<dt>Kun-Yomi</dt>
2017-09-15 20:18:21 +00:00
{{#each kunyomi}}
<dd>{{.}}</dd>
{{/each}}
2017-09-15 21:06:10 +00:00
{{/if}}
{{#if onyomi}}
<dt>On-Yomi</dt>
2017-09-15 20:18:21 +00:00
{{#each onyomi}}
<dd>{{.}}</dd>
{{/each}}
2017-09-15 21:06:10 +00:00
{{/if}}
2017-09-15 20:18:21 +00:00
</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>
2017-09-17 19:56:34 +00:00
<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>
2017-09-15 20:18:21 +00:00
</tr>
</table>
2017-05-24 04:27:20 +00:00
{{#if debug}}
<pre>{{#dumpObject}}{{{.}}}{{/dumpObject}}</pre>
{{/if}}
2017-03-18 03:45:47 +00:00
</div>
2017-01-09 06:44:13 +00:00
{{/inline}}
2016-11-14 02:06:49 +00:00
{{#if definitions}}
2017-03-18 16:48:53 +00:00
{{#each definitions}}
{{#unless @first}}<hr>{{/unless}}
2017-05-24 04:27:20 +00:00
{{> kanji debug=../debug addable=../addable source=../source root=../root}}
2017-03-18 16:48:53 +00:00
{{/each}}
2016-11-14 02:06:49 +00:00
{{else}}
2017-09-17 19:56:34 +00:00
<p class="note">No results found</p>
2016-11-14 02:06:49 +00:00
{{/if}}