diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-05-08 12:01:43 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-05-08 12:01:43 -0700 |
commit | 14ecb8f32831ef4747adef1de1af658dc7d4b298 (patch) | |
tree | b3b765ef282b15dd31336ec7ab326a34510ea4c0 /tmpl/kanji.html | |
parent | 449ffc260a94cda0aca8edf33cf105378840effb (diff) |
File reorg
Diffstat (limited to 'tmpl/kanji.html')
-rw-r--r-- | tmpl/kanji.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html new file mode 100644 index 00000000..7a5affb7 --- /dev/null +++ b/tmpl/kanji.html @@ -0,0 +1,43 @@ +<div class="kanji-definition"> + {{#with options}} + {{#if enableAnkiConnect}} + <div class="action-bar"> + <a href="#" title="Add Kanji" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_kanji.png"></a> + </div> + {{/if}} + {{/with}} + + <div class="kanji-glyph">{{character}}</div> + + <div class="kanji-info"> + <dl> + {{#if glossary}} + <dt>Meanings</dt> + <dd> + {{#each glossary}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} + </dd> + {{/if}} + + {{#if kunyomi}} + <dt>Kunyomi</dt> + <dd> + {{#each kunyomi}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} + </dd> + {{/if}} + + {{#if onyomi}} + <dt>Onyomi</dt> + <dd> + {{#each onyomi}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} + </dd> + {{/if}} + </dl> + </div> +</div> +</div> |