2017-01-08 22:44:13 -08:00
|
|
|
{{#*inline "definition"}}
|
2017-10-12 09:59:09 +03:00
|
|
|
{{#if tags}}
|
|
|
|
<div>
|
|
|
|
{{#each tags}}
|
|
|
|
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-10-03 07:20:02 +03:00
|
|
|
{{#if only}}
|
|
|
|
<div>
|
|
|
|
(
|
|
|
|
{{~#each only~}}
|
|
|
|
{{{.}}}{{#unless @last}}, {{/unless}}
|
|
|
|
{{/each}}
|
|
|
|
only)
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-03-18 09:48:53 -07:00
|
|
|
{{#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-08 22:44:13 -08:00
|
|
|
{{/inline}}
|
|
|
|
|
|
|
|
{{#*inline "term"}}
|
2017-03-25 18:08:42 -07:00
|
|
|
<div class="entry" data-type="term">
|
2017-03-03 20:25:14 -08:00
|
|
|
<div class="actions">
|
2017-01-08 22:44:13 -08:00
|
|
|
{{#if addable}}
|
2017-07-01 18:27:49 -07:00
|
|
|
<a href="#" class="action-view-note pending disabled"><img src="/mixed/img/view-note.png" title="View added note (Alt + V)" alt></a>
|
2017-03-25 18:08:42 -07:00
|
|
|
<a href="#" class="action-add-note pending disabled" data-mode="term-kanji"><img src="/mixed/img/add-term-kanji.png" title="Add expression (Alt + E)" alt></a>
|
|
|
|
<a href="#" class="action-add-note pending disabled" data-mode="term-kana"><img src="/mixed/img/add-term-kana.png" title="Add reading (Alt + R)" alt></a>
|
2017-01-08 22:44:13 -08:00
|
|
|
{{/if}}
|
2017-10-07 07:02:50 +03:00
|
|
|
{{#unless merged}}
|
2017-01-08 22:44:13 -08:00
|
|
|
{{#if playback}}
|
2017-03-25 18:08:42 -07:00
|
|
|
<a href="#" class="action-play-audio"><img src="/mixed/img/play-audio.png" title="Play audio (Alt + P)" alt></a>
|
2017-01-08 22:44:13 -08:00
|
|
|
{{/if}}
|
2017-10-07 07:02:50 +03:00
|
|
|
{{/unless}}
|
2017-07-01 18:27:49 -07:00
|
|
|
<img src="/mixed/img/entry-current.png" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
|
2017-01-08 22:44:13 -08:00
|
|
|
</div>
|
|
|
|
|
2017-10-01 22:51:01 +03:00
|
|
|
{{#if merged}}
|
2017-10-03 07:20:02 +03:00
|
|
|
{{#each expressions}}
|
|
|
|
<div class="expression">
|
2017-10-07 07:02:50 +03:00
|
|
|
<span class="expression-{{jmdictTermFrequency}}">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</span><!--
|
|
|
|
--><div class="peek-wrapper">
|
|
|
|
{{~#if ../playback~}}
|
2017-10-10 00:56:47 +03:00
|
|
|
<a href="#" class="action-play-audio"><img src="/mixed/img/play-audio.png" title="Play audio" alt></a>
|
2017-10-07 07:02:50 +03:00
|
|
|
{{/if}}
|
|
|
|
{{~#if tags~}}
|
2017-10-10 00:56:47 +03:00
|
|
|
<div class="tags">
|
2017-10-07 07:02:50 +03:00
|
|
|
{{~#each tags~}}
|
|
|
|
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
|
|
|
|
{{/each}}
|
2017-10-10 00:56:47 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{~#if frequencies~}}
|
|
|
|
<div class="frequencies">
|
|
|
|
{{~#each frequencies~}}
|
|
|
|
<span class="label label-default tag-frequency">{{dictionary}}:{{frequency}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2017-10-07 07:02:50 +03:00
|
|
|
{{/if}}<!--
|
|
|
|
--></div><!--
|
2017-10-08 03:37:28 +03:00
|
|
|
--><span class="{{#if @last}}invisible{{/if}}">、</span><!--
|
|
|
|
--></div>
|
2017-10-03 07:20:02 +03:00
|
|
|
{{/each}}
|
2017-10-01 22:51:01 +03:00
|
|
|
{{else}}
|
2017-08-26 11:57:34 -07:00
|
|
|
<div class="expression">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</div>
|
2017-10-01 22:51:01 +03:00
|
|
|
{{/if}}
|
2017-01-08 22:44:13 -08:00
|
|
|
|
|
|
|
{{#if reasons}}
|
2017-03-18 09:48:53 -07:00
|
|
|
<div class="reasons">
|
|
|
|
{{#each reasons}}
|
|
|
|
<span class="reasons">{{.}}</span> {{#unless @last}}«{{/unless}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2017-01-08 22:44:13 -08:00
|
|
|
{{/if}}
|
|
|
|
|
2017-10-11 09:18:55 +03:00
|
|
|
{{#if termTags}}
|
|
|
|
<div>
|
|
|
|
{{#each termTags}}
|
|
|
|
<span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-09-15 13:32:49 -07:00
|
|
|
{{#if frequencies}}
|
|
|
|
<div>
|
|
|
|
{{#each frequencies}}
|
|
|
|
<span class="label label-default tag-frequency">{{dictionary}}:{{frequency}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-03-03 20:25:14 -08:00
|
|
|
<div class="glossary">
|
2017-03-18 09:48:53 -07:00
|
|
|
{{#if grouped}}
|
2017-01-08 22:44:13 -08:00
|
|
|
{{#if definitions.[1]}}
|
|
|
|
<ol>
|
|
|
|
{{#each definitions}}
|
2017-03-18 09:48:53 -07:00
|
|
|
<li>{{> definition}}</li>
|
2017-01-08 22:44:13 -08:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
{{else}}
|
2017-03-18 09:48:53 -07:00
|
|
|
{{> definition definitions.[0]}}
|
2017-01-08 22:44:13 -08:00
|
|
|
{{/if}}
|
2017-10-01 22:51:01 +03:00
|
|
|
{{else if merged}}
|
|
|
|
{{#if definitions.[1]}}
|
|
|
|
<ol>
|
|
|
|
{{#each definitions}}
|
|
|
|
<li>{{> definition}}</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
{{else}}
|
|
|
|
{{> definition definitions.[0]}}
|
|
|
|
{{/if}}
|
2017-03-18 09:48:53 -07:00
|
|
|
{{else}}
|
2017-01-08 22:44:13 -08:00
|
|
|
{{> definition}}
|
2017-03-18 09:48:53 -07:00
|
|
|
{{/if}}
|
2017-01-08 22:44:13 -08:00
|
|
|
</div>
|
2017-05-23 21:27:20 -07:00
|
|
|
|
|
|
|
{{#if debug}}
|
|
|
|
<pre>{{#dumpObject}}{{{.}}}{{/dumpObject}}</pre>
|
|
|
|
{{/if}}
|
2017-03-17 20:45:47 -07:00
|
|
|
</div>
|
2017-01-08 22:44:13 -08:00
|
|
|
{{/inline}}
|
|
|
|
|
2016-11-13 18:06:49 -08:00
|
|
|
{{#if definitions}}
|
2017-03-18 09:48:53 -07:00
|
|
|
{{#each definitions}}
|
|
|
|
{{#unless @first}}<hr>{{/unless}}
|
2017-10-01 22:51:01 +03:00
|
|
|
{{> term debug=../debug grouped=../grouped merged=../merged addable=../addable playback=../playback}}
|
2017-03-18 09:48:53 -07:00
|
|
|
{{/each}}
|
2016-11-13 18:06:49 -08:00
|
|
|
{{else}}
|
2017-06-25 21:14:39 -07:00
|
|
|
<p class="note">No results found.</p>
|
2016-11-13 18:06:49 -08:00
|
|
|
{{/if}}
|