summaryrefslogtreecommitdiff
path: root/util/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'util/tmpl')
-rw-r--r--util/tmpl/kanji.html6
-rw-r--r--util/tmpl/term.html6
2 files changed, 3 insertions, 9 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index 4851826f..119fead6 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,11 +1,7 @@
<div class="kanji-definition">
{{#with options}}
{{#if enableAnkiConnect}}
- <div class="action-bar">
- {{#with ../addable}}
- <a href="#" title="Add Kanji" class="action-link {{#unless kanji}}disabled{{/unless}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../../root}}/add_kanji.png"></a>
- {{/with}}
- </div>
+ <a href="#" title="Add Kanji" class="action-link disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/add_kanji.png"></a>
{{/if}}
{{/with}}
diff --git a/util/tmpl/term.html b/util/tmpl/term.html
index 465a9388..da29271c 100644
--- a/util/tmpl/term.html
+++ b/util/tmpl/term.html
@@ -2,10 +2,8 @@
{{#with options}}
{{#if enableAnkiConnect}}
<div class="action-bar">
- {{#with ../addable}}
- <a href="#" title="Add as expression" class="action-link {{#unless vocabExp}}disabled{{/unless}}" data-mode="vocabExp" data-index="{{@index}}"><img src="{{../../root}}/img/add_expression.png"></a>
- <a href="#" title="Add as reading" class="action-link {{#unless vocabExp}}disabled{{/unless}}" data-mode="vocabReading" data-index="{{@index}}"><img src="{{../../root}}/img/add_reading.png"></a>
- {{/with}}
+ <a href="#" title="Add as expression" class="action-link disabled" data-mode="vocabExp" data-index="{{@index}}"><img src="{{../root}}/img/add_expression.png"></a>
+ <a href="#" title="Add as reading" class="action-link disabled" data-mode="vocabReading" data-index="{{@index}}"><img src="{{../root}}/img/add_reading.png"></a>
</div>
{{/if}}
{{/with}}