summaryrefslogtreecommitdiff
path: root/tmpl/fields.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-02-07 22:21:33 -0800
committerAlex Yatskov <alex@foosoft.net>2017-02-07 22:21:33 -0800
commitb3487370db3540a8cafa0346eed1e9109abe7682 (patch)
treebf45c0ec85d264b4f176bc205e883e55d29c3abf /tmpl/fields.html
parente73d2d96c9cadce1364ae48a0dc68e24f2019c72 (diff)
fix kanji template
Diffstat (limited to 'tmpl/fields.html')
-rw-r--r--tmpl/fields.html21
1 files changed, 15 insertions, 6 deletions
diff --git a/tmpl/fields.html b/tmpl/fields.html
index ba03349c..33fbff44 100644
--- a/tmpl/fields.html
+++ b/tmpl/fields.html
@@ -48,15 +48,24 @@
{{#*inline "glossary"}}
{{~#if html}}<div style="text-align: left;">{{/if~}}
- {{~#if group~}}
- {{~#if definition.definitions.[1]~}}
- {{~#if html}}<ol>{{#each definition.definitions}}<li>{{> glossary-single html=../html}}</li>{{/each}}</ol>
- {{~else}}{{#each definition.definitions}} * {{> glossary-single html=../html}}{{/each}}{{/if~}}
+ {{~#if modeKanji~}}
+ {{~#if definition.glossary.[1]~}}
+ {{~#if html}}<ol>{{#each definition.glossary}}<li>{{.}}</li>{{/each}}</ol>
+ {{~else}}{{#each definition.glossary}}{{.}}{{#unless @last}}, {{/unless}}{{/each}}{{/if~}}
{{~else~}}
- {{~> glossary-single definition.definitions.[0] html=html~}}
+ {{definition.glossary.[0]}}
{{~/if~}}
{{~else~}}
- {{~> glossary-single definition html=html~}}
+ {{~#if group~}}
+ {{~#if definition.definitions.[1]~}}
+ {{~#if html}}<ol>{{#each definition.definitions}}<li>{{> glossary-single html=../html}}</li>{{/each}}</ol>
+ {{~else}}{{#each definition.definitions}} * {{> glossary-single html=../html}}{{/each}}{{/if~}}
+ {{~else~}}
+ {{~> glossary-single definition.definitions.[0] html=html~}}
+ {{~/if~}}
+ {{~else~}}
+ {{~> glossary-single definition html=html~}}
+ {{~/if~}}
{{~/if~}}
{{~#if html}}</div>{{/if~}}
{{/inline}}