aboutsummaryrefslogtreecommitdiff
path: root/tmpl/kanji.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-19 08:52:22 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-19 08:52:22 -0700
commit7d93587acb250266782e3788894a9e26ddf1eaa5 (patch)
treed33165811c5f80d4a9d5ab956bba4073ebf919fa /tmpl/kanji.html
parenta4a67be455aa8ac75efbee6183225fb8d70346d8 (diff)
Conditionally show add buttons
Diffstat (limited to 'tmpl/kanji.html')
-rw-r--r--tmpl/kanji.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index 0a0cfe11..daa825be 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -1,11 +1,9 @@
<div class="kanji-definition">
- {{#with options}}
- <div class="action-bar" data-sequence="{{../sequence}}">
- {{#if enableAnkiConnect}}
- <a href="#" title="Add Kanji" class="action-add-note disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_kanji.png"></a>
+ <div class="action-bar" data-sequence="{{sequence}}">
+ {{#if addable}}
+ <a href="#" title="Add Kanji" class="action-add-note disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{root}}/img/add_kanji.png"></a>
{{/if}}
</div>
- {{/with}}
<div class="kanji-glyph">{{character}}</div>