yomichan/tmpl/term.html

30 lines
1.1 KiB
HTML
Raw Normal View History

2016-04-28 20:36:55 -07:00
<div class="term-definition">
2017-01-07 12:21:47 -08:00
<div class="action-bar">
{{#if addable}}
2017-01-07 12:21:47 -08:00
<a href="#" title="Add term as expression" class="action-add-note pending disabled" data-mode="term_kanji" data-index="{{@index}}"><img src="img/add_term_kanji.png"></a>
<a href="#" title="Add term as reading" class="action-add-note pending disabled" data-mode="term_kana" data-index="{{@index}}"><img src="img/add_term_kana.png"></a>
{{/if}}
2017-01-07 12:21:47 -08:00
{{#if playback}}
<a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="img/play_audio.png"></a>
{{/if}}
2016-05-04 18:58:12 -07:00
</div>
2016-05-03 20:25:35 -07:00
2016-04-24 19:23:13 -07:00
{{#if reading}}
2016-04-28 20:36:55 -07:00
<div class="term-expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div>
2016-04-24 19:23:13 -07:00
{{else}}
2016-04-28 20:36:55 -07:00
<div class="term-expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div>
2016-04-24 19:23:13 -07:00
{{/if}}
2016-04-13 20:13:41 -07:00
2017-01-08 18:39:59 -08:00
{{#if reasons}}
2016-12-18 22:24:34 -08:00
<div class="term-reasons">
{{#each reasons}}
<span class="reasons">{{.}}</span> {{#unless @last}}&laquo;{{/unless}}
2016-04-24 19:23:13 -07:00
{{/each}}
</div>
2017-01-08 18:39:59 -08:00
{{/if}}
2016-04-24 19:23:13 -07:00
2016-04-28 20:36:55 -07:00
<div class="term-glossary">
2017-01-08 18:39:59 -08:00
{{> term-definition.html}}
2016-04-24 19:23:13 -07:00
</div>
2016-04-13 18:55:31 -07:00
</div>