yomichan/util/tmpl/kanji.html

46 lines
1.2 KiB
HTML
Raw Normal View History

2016-04-28 20:32:04 -07:00
<div class="kanji-definition">
2016-05-03 22:18:03 -07:00
{{#with options}}
2016-05-04 18:58:12 -07:00
{{#if enableAnkiConnect}}
2016-05-04 19:10:28 -07:00
<div class="action-bar">
2016-05-04 18:58:12 -07:00
{{#with ../addable}}
2016-05-04 19:31:06 -07:00
<a href="#" title="Add Kanji" class="action-link {{#unless kanji}}disabled{{/unless}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../../root}}/add_kanji.png"></a>
2016-05-04 18:58:12 -07:00
{{/with}}
</div>
{{/if}}
2016-05-03 22:18:03 -07:00
{{/with}}
2016-05-03 20:53:53 -07:00
2016-04-28 20:32:04 -07:00
<div class="kanji-glyph">{{character}}</div>
2016-05-03 20:53:53 -07:00
2016-04-28 20:32:04 -07:00
<div class="kanji-info">
<dl>
{{#if glossary}}
<dt>Meanings</dt>
<dd>
{{#each glossary}}
{{.}}{{#unless @last}}, {{/unless}}
{{/each}}
</dd>
{{/if}}
2016-04-17 18:35:22 -07:00
2016-04-28 20:32:04 -07:00
{{#if kunyomi}}
<dt>Kunyomi</dt>
<dd>
{{#each kunyomi}}
{{.}}{{#unless @last}}, {{/unless}}
{{/each}}
</dd>
{{/if}}
2016-04-17 18:35:22 -07:00
2016-04-28 20:32:04 -07:00
{{#if onyomi}}
<dt>Onyomi</dt>
<dd>
{{#each onyomi}}
{{.}}{{#unless @last}}, {{/unless}}
{{/each}}
</dd>
{{/if}}
</dl>
</div>
2016-04-24 20:50:27 -07:00
</div>
2016-04-17 18:35:22 -07:00
</div>