diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-05-03 22:18:03 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-05-03 22:18:03 -0700 |
commit | 36e9a332dfe8ea60f0149100ff990f9c5e58b449 (patch) | |
tree | ded3ef6a25945734633fd65b708ed30fac6b263e /util/tmpl/term.html | |
parent | 8926eeab4501724ce4627ae9cff97963f2bd2b72 (diff) |
WIP
Diffstat (limited to 'util/tmpl/term.html')
-rw-r--r-- | util/tmpl/term.html | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/util/tmpl/term.html b/util/tmpl/term.html index 3d3d4eb0..b1ff1fd8 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -1,19 +1,23 @@ <div class="term-definition"> - <div class="action-icons"> - {{#with addable}} - {{#if vocabExp}} - <a href="#" title="Add as expression"><img src="{{../root}}/img/add_expression.png"></a> - {{else}} - <img src="{{../root}}/img/add_expression.png" class="inactive"> - {{/if}} + {{#with options}} + {{#if enableAnkiConnect}} + <div class="action-icons"> + {{#with ../addable}} + {{#if vocabExp}} + <a href="#" title="Add as expression"><img src="{{../../root}}/img/add_expression.png"></a> + {{else}} + <img src="{{../../root}}/img/add_expression.png" class="inactive"> + {{/if}} - {{#if vocabReading}} - <a href="#" title="Add as reading"><img src="{{../root}}/img/add_reading.png"></a> - {{else}} - <img src="{{../root}}/img/add_reading.png" class="inactive"> - {{/if}} - {{/with}} - </div> + {{#if vocabReading}} + <a href="#" title="Add as reading"><img src="{{../../root}}/img/add_reading.png"></a> + {{else}} + <img src="{{../../root}}/img/add_reading.png" class="inactive"> + {{/if}} + {{/with}} + </div> + {{/if}} + {{/with}} {{#if reading}} <div class="term-expression"><ruby>{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}<rt>{{reading}}</rt></ruby></div> |