2017-01-09 02:10:38 +00:00
< div class = "term-definition" >
< div class = "action-bar" >
{{#if addable}}
2017-01-09 03:03:48 +00:00
< a href = "#" title = "Add term as expression" class = "action-add-note pending disabled" data-mode = "term_kanji" data-index = "{{@index}}" > < img src = "img/add_term_kanji.png" > < / a >
< a href = "#" title = "Add term as reading" class = "action-add-note pending disabled" data-mode = "term_kana" data-index = "{{@index}}" > < img src = "img/add_term_kana.png" > < / a >
2017-01-09 02:10:38 +00:00
{{/if}}
{{#if playback}}
2017-01-09 03:03:48 +00:00
< a href = "#" title = "Play audio" class = "action-play-audio" data-index = "{{@index}}" > < img src = "img/play_audio.png" > < / a >
2017-01-09 02:10:38 +00:00
{{/if}}
< / div >
{{#if reading}}
2017-01-09 03:03:48 +00:00
< div class = "term-expression" > < ruby > {{#kanjiLinks}}{{expression}}{{/kanjiLinks}}< rt > {{reading}}< / rt > < / ruby > < / div >
2017-01-09 02:10:38 +00:00
{{else}}
2017-01-09 03:03:48 +00:00
< div class = "term-expression" > {{#kanjiLinks}}{{expression}}{{/kanjiLinks}}< / div >
2017-01-09 02:10:38 +00:00
{{/if}}
{{#if reasons}}
2017-01-09 03:03:48 +00:00
< div class = "term-reasons" >
{{#each reasons}}
< span class = "reasons" > {{.}}< / span > {{#unless @last}}« {{/unless}}
{{/each}}
< / div >
2017-01-09 02:10:38 +00:00
{{/if}}
< div class = "term-glossary" >
2017-01-09 03:03:48 +00:00
{{#if definitions.[1]}}
2017-01-09 02:10:38 +00:00
< ol >
{{#each definitions}}
2017-01-09 03:03:48 +00:00
< li > {{> term-definition.html}}< / li >
2017-01-09 02:10:38 +00:00
{{/each}}
< / ol >
2017-01-09 03:03:48 +00:00
{{else}}
{{> term-definition.html definitions.[0]}}
{{/if}}
2017-01-09 02:10:38 +00:00
< / div >
< / div >