aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/terms.html17
1 files changed, 15 insertions, 2 deletions
diff --git a/tmpl/terms.html b/tmpl/terms.html
index ca0dcbe9..36901b5b 100644
--- a/tmpl/terms.html
+++ b/tmpl/terms.html
@@ -1,4 +1,13 @@
{{#*inline "definition"}}
+{{#if only}}
+<div>
+ (
+ {{~#each only~}}
+ {{{.}}}{{#unless @last}}, {{/unless}}
+ {{/each}}
+ only)
+</div>
+{{/if}}
{{#if tags}}
<div>
{{#each tags}}
@@ -32,8 +41,12 @@
</div>
{{#if merged}}
- <div class="expression">{{#kanjiLinks}}{{#expressions}}{{{.}}}{{/expressions}}{{/kanjiLinks}}</div>
- <div>{{#readings}}{{{.}}}{{/readings}}</div>
+ {{#each expressions}}
+ <div class="expression">
+ <span class="expression-{{jmdictTermFrequency}}">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</span>
+ {{#unless @last}}、{{/unless}}
+ </div>
+ {{/each}}
{{else}}
<div class="expression">{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}</div>
{{/if}}