diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-01-22 19:22:53 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-01-22 19:22:53 -0800 |
commit | f808221470b607996aa1554ebd15afa26bcfabd1 (patch) | |
tree | 9cc1a3fa0985eee61f99d192b808ab538db78ff4 /tmpl/fields.html | |
parent | 985c5df328ccff8492576d005a00fae828f56bab (diff) |
wip
Diffstat (limited to 'tmpl/fields.html')
-rw-r--r-- | tmpl/fields.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tmpl/fields.html b/tmpl/fields.html index 6d3756d6..ca2a5ee2 100644 --- a/tmpl/fields.html +++ b/tmpl/fields.html @@ -1,15 +1,16 @@ {{#*inline "audio"}}{{/inline}} {{#*inline "character"}} -character +{{definition.character}} {{/inline}} {{#*inline "dictionary"}} -dictionary +{{definition.dictionary}} {{/inline}} {{#*inline "expression"}} -expression +{{#if modeTermKana}}{{#if definition.reading}}{{definition.reading}}{{else}}{{definition.expression}}{{/if}}{{/if}} +{{#if modeTermKanji}}{{definition.expression}}{{/if}} {{/inline}} {{#*inline "furigana"}} @@ -21,27 +22,27 @@ glossary {{/inline}} {{#*inline "kunyomi"}} -kunyomi +{{definition.kunyomi}} {{/inline}} {{#*inline "onyomi"}} -onyomi +{{definition.onyomi}} {{/inline}} {{#*inline "reading"}} -reading +{{definition.reading}} {{/inline}} {{#*inline "sentence"}} -sentence +{{definition.sentence}} {{/inline}} {{#*inline "tags"}} -tags +{{#each definition.tags}}{{name}}{{#unless @last}}, {{/unless}}{{/each}} {{/inline}} {{#*inline "url"}} -url +{{#if html}}<a href="{{definition.url}}">{{definition.url}}</a>{{else}}{{definition.url}}{{/if}} {{/inline}} {{> (lookup . 'marker') }} |