yomichan/tmpl/kanji.html

63 lines
1.7 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-18 16:48:53 +00:00
<a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji"><img src="/mixed/img/add-kanji.png" alt></a>
2017-01-09 06:44:13 +00:00
{{/if}}
2017-03-18 04:03:52 +00:00
{{#if source}}
2017-03-18 16:48:53 +00:00
<a href="#" title="Source term" class="source-term"><img src="/mixed/img/source-term.png" alt></a>
2017-03-18 04:03:52 +00:00
{{/if}}
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 class="reading">
2017-01-09 06:44:13 +00:00
<table>
<tr>
<th>Kunyomi:</th>
<td>
{{#each kunyomi}}
2017-03-18 16:48:53 +00:00
{{.}}{{#unless @last}}, {{/unless}}
2017-01-09 06:44:13 +00:00
{{/each}}
</td>
</tr>
<tr>
<th>Onyomi:</th>
<td>
{{#each onyomi}}
2017-03-18 16:48:53 +00:00
{{.}}{{#unless @last}}, {{/unless}}
2017-01-09 06:44:13 +00:00
{{/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-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-03-04 04:25:14 +00:00
<div class="glossary">
2017-01-09 06:44:13 +00:00
{{#if glossary.[1]}}
2017-03-18 16:48:53 +00:00
<ol>
{{#each glossary}}
<li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li>
{{/each}}
</ol>
2017-01-09 06:44:13 +00:00
{{else}}
2017-03-18 16:48:53 +00:00
<div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
2017-01-09 06:44:13 +00:00
{{/if}}
</div>
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}}
{{> kanji addable=../addable source=../source root=../root}}
{{/each}}
2016-11-14 02:06:49 +00:00
{{else}}
2017-03-18 16:48:53 +00:00
<p>No results found.</p>
2016-11-14 02:06:49 +00:00
{{/if}}