yomichan/tmpl/terms.html

73 lines
2.1 KiB
HTML
Raw Normal View History

2017-01-09 06:44:13 +00:00
{{#*inline "definition"}}
2017-03-18 16:48:53 +00:00
{{#if tags}}
<div>
{{#each tags}}
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
{{/each}}
</div>
{{/if}}
{{#if glossary.[1]}}
<ul>
{{#each glossary}}
<li><span class="glossary-item">{{#multiLine}}{{.}}{{/multiLine}}</span></li>
{{/each}}
</ul>
{{else}}
<div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
{{/if}}
2017-01-09 06:44:13 +00:00
{{/inline}}
{{#*inline "term"}}
2017-03-18 03:45:47 +00:00
<div class="entry">
2017-03-04 04:25:14 +00:00
<div class="actions">
2017-03-19 00:53:21 +00:00
<img src="/mixed/img/entry-current.png" title="Current entry (arrows / home / end)" class="current" alt>
2017-01-09 06:44:13 +00:00
{{#if addable}}
2017-03-18 16:48:53 +00:00
<a href="#" title="Add expression" class="action-add-note pending disabled" data-mode="term-kanji"><img src="/mixed/img/add-term-kanji.png" alt></a>
<a href="#" title="Add reading" class="action-add-note pending disabled" data-mode="term-kana"><img src="/mixed/img/add-term-kana.png" alt></a>
2017-01-09 06:44:13 +00:00
{{/if}}
{{#if playback}}
2017-03-18 16:48:53 +00:00
<a href="#" title="Play audio" class="action-play-audio"><img src="/mixed/img/play-audio.png" alt></a>
2017-01-09 06:44:13 +00:00
{{/if}}
</div>
{{#if reading}}
2017-03-18 16:48:53 +00:00
<div class="expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div>
2017-01-09 06:44:13 +00:00
{{else}}
2017-03-18 16:48:53 +00:00
<div class="expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div>
2017-01-09 06:44:13 +00:00
{{/if}}
{{#if reasons}}
2017-03-18 16:48:53 +00:00
<div class="reasons">
{{#each reasons}}
<span class="reasons">{{.}}</span> {{#unless @last}}&laquo;{{/unless}}
{{/each}}
</div>
2017-01-09 06:44:13 +00:00
{{/if}}
2017-03-04 04:25:14 +00:00
<div class="glossary">
2017-03-18 16:48:53 +00:00
{{#if grouped}}
2017-01-09 06:44:13 +00:00
{{#if definitions.[1]}}
<ol>
{{#each definitions}}
2017-03-18 16:48:53 +00:00
<li>{{> definition}}</li>
2017-01-09 06:44:13 +00:00
{{/each}}
</ol>
{{else}}
2017-03-18 16:48:53 +00:00
{{> definition definitions.[0]}}
2017-01-09 06:44:13 +00:00
{{/if}}
2017-03-18 16:48:53 +00:00
{{else}}
2017-01-09 06:44:13 +00:00
{{> definition}}
2017-03-18 16:48:53 +00:00
{{/if}}
2017-01-09 06:44:13 +00:00
</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}}
{{> term grouped=../grouped addable=../addable playback=../playback}}
{{/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}}