From 69ad4a7c9b1f859733909a75534e2005a9f56178 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Tue, 3 Oct 2017 07:20:02 +0300 Subject: merged mode: implement missing stuff, refactoring - use correct tags - indicate popular and rare terms - indicate definitions restricted to specific terms - frequencies (Innocent Corpus) --- tmpl/terms.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'tmpl') 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}} +
+ ( + {{~#each only~}} + {{{.}}}{{#unless @last}}, {{/unless}} + {{/each}} + only) +
+{{/if}} {{#if tags}}
{{#each tags}} @@ -32,8 +41,12 @@
{{#if merged}} -
{{#kanjiLinks}}{{#expressions}}{{{.}}}{{/expressions}}{{/kanjiLinks}}
-
{{#readings}}{{{.}}}{{/readings}}
+ {{#each expressions}} +
+ {{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}} + {{#unless @last}}、{{/unless}} +
+ {{/each}} {{else}}
{{#kanjiLinks}}{{#furigana}}{{{.}}}{{/furigana}}{{/kanjiLinks}}
{{/if}} -- cgit v1.2.3