yomichan/tmpl/kanji.html

62 lines
1.6 KiB
HTML
Raw Normal View History

2017-01-10 03:05:21 +00:00
{{#*inline "kanji"}}
2017-03-18 03:45:47 +00:00
<div class="entry">
2017-03-04 04:25:14 +00:00
<div class="actions">
2017-01-09 06:44:13 +00:00
{{#if addable}}
2017-03-05 04:27:46 +00:00
<a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="/mixed/img/add-kanji.png"></a>
2017-01-09 06:44:13 +00:00
{{/if}}
</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 class="reading">
2017-01-09 06:44:13 +00:00
<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>
2017-03-04 04:25:14 +00:00
<div>
2017-01-09 06:44:13 +00:00
{{#each tags}}
2017-03-04 04:25:14 +00:00
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
2017-01-09 06:44:13 +00:00
{{/each}}
</div>
2017-03-04 04:25:14 +00:00
<div class="glossary">
2017-01-09 06:44:13 +00:00
{{#if glossary.[1]}}
2017-03-04 04:25:14 +00:00
<ol>
2017-01-09 06:44:13 +00:00
{{#each glossary}}
2017-03-04 04:25:14 +00:00
<li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li>
2017-01-09 06:44:13 +00:00
{{/each}}
</ol>
{{else}}
2017-03-04 04:25:14 +00:00
<div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
2017-01-09 06:44:13 +00:00
{{/if}}
</div>
2017-03-16 04:13:58 +00:00
<a href="#" class="term-source">Back</a>
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}}
{{#each definitions}}
2017-01-09 03:03:48 +00:00
{{#unless @first}}<hr>{{/unless}}
2017-01-09 06:44:13 +00:00
{{> kanji addable=../addable root=../root}}
2016-11-14 02:06:49 +00:00
{{/each}}
{{else}}
2017-03-04 19:53:55 +00:00
<p>No results found.</p>
2016-11-14 02:06:49 +00:00
{{/if}}