aboutsummaryrefslogtreecommitdiff
path: root/util/tmpl/kanji.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-04 19:10:28 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-04 19:10:28 -0700
commit22ff1f869537b4ffb3c12ed9d1f101629e06e35a (patch)
tree1f7edbdcc02e3db3c2ece1ed59fe2c88360a1cfc /util/tmpl/kanji.html
parent574b2251b705906df440779cccce4962979e7062 (diff)
Simplify templates
Diffstat (limited to 'util/tmpl/kanji.html')
-rw-r--r--util/tmpl/kanji.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index d30499ea..55cf6b2e 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,13 +1,9 @@
<div class="kanji-definition">
{{#with options}}
{{#if enableAnkiConnect}}
- <div class="action-icons">
+ <div class="action-bar">
{{#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}}
+ <a href="#" title="Add Kanji" class="{{#unless kanji}}disabled{{/unless}}"><img src="{{../../root}}/add_kanji.png"></a>
{{/with}}
</div>
{{/if}}