yomichan/tmpl/kanji-list.html

60 lines
1.7 KiB
HTML
Raw Normal View History

2017-01-10 03:05:21 +00:00
{{#*inline "kanji"}}
2017-01-09 06:44:13 +00:00
<div class="kanji-definition">
<div class="action-bar">
{{#if addable}}
<a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="img/add_kanji.png"></a>
{{/if}}
</div>
<div class="kanji-glyph">{{character}}</div>
<div class="kanji-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 class="kanji-tags">
{{#each tags}}
<span class="tag tag-{{category}}" title="{{notes}}">{{name}}</span>
{{/each}}
</div>
<div class="kanji-glossary">
{{#if glossary.[1]}}
<ol "kanji-glossary-group">
{{#each glossary}}
2017-01-10 03:42:54 +00:00
<li><span class="kanji-glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li>
2017-01-09 06:44:13 +00:00
{{/each}}
</ol>
{{else}}
2017-01-10 03:42:54 +00:00
<div class="kanji-glossary-group kanji-glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
2017-01-09 06:44:13 +00:00
{{/if}}
</div>
</div>
{{/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}}
<p>No results found</p>
{{/if}}