From b3487370db3540a8cafa0346eed1e9109abe7682 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 7 Feb 2017 22:21:33 -0800 Subject: fix kanji template --- tmpl/fields.html | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'tmpl') 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}}
{{/if~}} - {{~#if group~}} - {{~#if definition.definitions.[1]~}} - {{~#if html}}
    {{#each definition.definitions}}
  1. {{> glossary-single html=../html}}
  2. {{/each}}
- {{~else}}{{#each definition.definitions}} * {{> glossary-single html=../html}}{{/each}}{{/if~}} + {{~#if modeKanji~}} + {{~#if definition.glossary.[1]~}} + {{~#if html}}
    {{#each definition.glossary}}
  1. {{.}}
  2. {{/each}}
+ {{~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}}
    {{#each definition.definitions}}
  1. {{> glossary-single html=../html}}
  2. {{/each}}
+ {{~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}}
{{/if~}} {{/inline}} -- cgit v1.2.3