diff options
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> |