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/term.html | |
parent | 449ffc260a94cda0aca8edf33cf105378840effb (diff) |
File reorg
Diffstat (limited to 'tmpl/term.html')
-rw-r--r-- | tmpl/term.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tmpl/term.html b/tmpl/term.html new file mode 100644 index 00000000..216ccf0a --- /dev/null +++ b/tmpl/term.html @@ -0,0 +1,40 @@ +<div class="term-definition"> + {{#with options}} + {{#if enableAnkiConnect}} + <div class="action-bar"> + <a href="#" title="Add term as expression" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="vocabExp" data-index="{{@index}}"><img src="{{../root}}/img/add_expression.png"></a> + <a href="#" title="Add term as reading" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="vocabReading" data-index="{{@index}}"><img src="{{../root}}/img/add_reading.png"></a> + </div> + {{/if}} + {{/with}} + + {{#if reading}} + <div class="term-expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div> + {{else}} + <div class="term-expression">{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}</div> + {{/if}} + + {{#if rules}} + <div class="term-rules"> + {{#each rules}} + <span class="rule">{{.}}</span> {{#unless @last}}«{{/unless}} + {{/each}} + </div> + {{/if}} + + {{#if tags}} + <div class="term-tags"> + {{#each tags}} + <span class="tag tag-{{class}}" title="{{desc}}">{{name}}</span> + {{/each}} + </div> + {{/if}} + + <div class="term-glossary"> + <ol> + {{#each glossary}} + <li><span>{{.}}</span></li> + {{/each}} + </ol> + </div> +</div> |