diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-03 07:20:02 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-03 07:20:02 +0300 |
commit | 69ad4a7c9b1f859733909a75534e2005a9f56178 (patch) | |
tree | 93cec595a2e8183a95fc362b5551e2e68cefc9d8 /tmpl | |
parent | 3b664dd908b94e1306a211e7c8b9cde74694c018 (diff) |
merged mode: implement missing stuff, refactoring
- use correct tags
- indicate popular and rare terms
- indicate definitions restricted to specific terms
- frequencies (Innocent Corpus)
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/terms.html | 17 |
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}} |