summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-07 07:02:50 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-07 07:02:50 +0300
commit94d590fc85f87028d8264e93c8ad58c71d0977f2 (patch)
treea4f1bd946674995fed7748b5433dba5fe37a2f93 /tmpl
parent981d9eddb69322494589c241d049652c9091ed06 (diff)
merged mode: support audio and tags for terms
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/terms.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/tmpl/terms.html b/tmpl/terms.html
index 505ae5d4..40a44c12 100644
--- a/tmpl/terms.html
+++ b/tmpl/terms.html
@@ -34,16 +34,30 @@
<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>
{{/if}}
+ {{#unless merged}}
{{#if playback}}
<a href="#" class="action-play-audio"><img src="/mixed/img/play-audio.png" title="Play audio (Alt + P)" alt></a>
{{/if}}
+ {{/unless}}
<img src="/mixed/img/entry-current.png" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
</div>
{{#if merged}}
{{#each expressions}}
<div class="expression">
- <span class="expression-{{jmdictTermFrequency}}">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</span>{{#unless @last}}、{{/unless}}
+ <span class="expression-{{jmdictTermFrequency}}">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</span><!--
+ --><div class="peek-wrapper">
+ {{~#if ../playback~}}
+ <a href="#" class="action-play-audio"><img src="/mixed/img/play-audio.png" title="Play audio" alt></a><br>
+ {{/if}}
+ {{~#if tags~}}
+ {{~#each tags~}}
+ <span class="label label-default tag-{{category}}" title="{{notes}}">{{name}}</span>
+ {{/each}}
+ {{/if}}<!--
+ --><span style="display: inline-block;"></span><!--
+ --></div><!--
+ -->{{~#unless @last~}}、{{/unless}}
</div>
{{/each}}
{{else}}