yomichan/tmpl/kanji.html

49 lines
1.4 KiB
HTML
Raw Normal View History

2016-04-29 03:32:04 +00:00
<div class="kanji-definition">
2017-01-07 20:21:47 +00:00
<div class="action-bar">
2016-10-19 15:52:22 +00:00
{{#if addable}}
2017-01-07 20:21:47 +00:00
<a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="img/add_kanji.png"></a>
2016-07-18 15:41:46 +00:00
{{/if}}
2016-05-07 20:43:32 +00:00
</div>
2016-05-04 03:53:53 +00:00
2016-04-29 03:32:04 +00:00
<div class="kanji-glyph">{{character}}</div>
2016-05-04 03:53:53 +00:00
2016-08-08 02:56:50 +00:00
<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>
2016-04-18 01:35:22 +00:00
2016-08-08 02:56:50 +00:00
<div class="kanji-tags">
{{#each tags}}
2016-12-18 03:30:26 +00:00
<span class="tag tag-{{category}}" title="{{notes}}">{{name}}</span>
2016-08-08 02:56:50 +00:00
{{/each}}
</div>
2016-04-18 01:35:22 +00:00
2016-08-08 02:56:50 +00:00
<div class="kanji-glossary">
{{#if glossary.[1]}}
2017-01-09 02:10:38 +00:00
<ol "kanji-glossary-group">
2016-08-08 02:56:50 +00:00
{{#each glossary}}
2017-01-09 02:10:38 +00:00
<li><span class="kanji-glossary-item">{{.}}</span></li>
2016-08-08 02:56:50 +00:00
{{/each}}
</ol>
{{else}}
2017-01-09 02:10:38 +00:00
<div class="kanji-glossary-group kanji-glossary-item">{{glossary.[0]}}</div>
{{/if}}
2016-04-29 03:32:04 +00:00
</div>
2016-04-25 03:50:27 +00:00
</div>