aboutsummaryrefslogtreecommitdiff
path: root/util/tmpl/kanji.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-03 22:18:03 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-03 22:18:03 -0700
commit36e9a332dfe8ea60f0149100ff990f9c5e58b449 (patch)
treeded3ef6a25945734633fd65b708ed30fac6b263e /util/tmpl/kanji.html
parent8926eeab4501724ce4627ae9cff97963f2bd2b72 (diff)
WIP
Diffstat (limited to 'util/tmpl/kanji.html')
-rw-r--r--util/tmpl/kanji.html22
1 files changed, 13 insertions, 9 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index 7f797c4b..8aab5f18 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,13 +1,17 @@
<div class="kanji-definition">
- <div class="action-icons">
- {{#with addable}}
- {{#if kanji}}
- <a href="#" title="Add Kanji"><img src="{{../root}}/add_kanji.png"></a>
- {{else}}
- <img src="{{../root}}/add_kanji.png" class="inactive">
- {{/if}}
- {{/with}}
- </div>
+ {{#with options}}
+ {{#if enableAnkiConnect}}
+ <div class="action-icons">
+ {{#with ../addable}}
+ {{#if kanji}}
+ <a href="#" title="Add Kanji"><img src="{{../../root}}/add_kanji.png"></a>
+ {{else}}
+ <img src="{{../../root}}/add_kanji.png" class="inactive">
+ {{/if}}
+ {{/with}}
+ </div>
+ {{/if}}
+ {{/with}}
<div class="kanji-glyph">{{character}}</div>