summaryrefslogtreecommitdiff
path: root/util/tmpl/term.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/term.html
parent574b2251b705906df440779cccce4962979e7062 (diff)
Simplify templates
Diffstat (limited to 'util/tmpl/term.html')
-rw-r--r--util/tmpl/term.html15
1 files changed, 3 insertions, 12 deletions
diff --git a/util/tmpl/term.html b/util/tmpl/term.html
index e1ed005e..7d0d75d1 100644
--- a/util/tmpl/term.html
+++ b/util/tmpl/term.html
@@ -3,19 +3,10 @@
{{#with options}}
{{#if enableAnkiConnect}}
- <div class="action-icons">
+ <div class="action-bar">
{{#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}}
+ <a href="#" title="Add as expression" class="{{#unless vocabExp}}disabled{{/unless}}"><img src="{{../../root}}/img/add_expression.png"></a>
+ <a href="#" title="Add as reading" class="{{#unless vocabExp}}disabled{{/unless}}"><img src="{{../../root}}/img/add_reading.png"></a>
{{/with}}
</div>
{{/if}}