summaryrefslogtreecommitdiff
path: root/util/tmpl/term.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-04 18:58:12 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-04 18:58:12 -0700
commit574b2251b705906df440779cccce4962979e7062 (patch)
tree80f7ffdac5ad08e1c6dcf52d458376299b1dfe63 /util/tmpl/term.html
parent36e9a332dfe8ea60f0149100ff990f9c5e58b449 (diff)
Cleanup
Diffstat (limited to 'util/tmpl/term.html')
-rw-r--r--util/tmpl/term.html32
1 files changed, 17 insertions, 15 deletions
diff --git a/util/tmpl/term.html b/util/tmpl/term.html
index b1ff1fd8..e1ed005e 100644
--- a/util/tmpl/term.html
+++ b/util/tmpl/term.html
@@ -1,22 +1,24 @@
<div class="term-definition">
+ {{id}}
+
{{#with options}}
- {{#if enableAnkiConnect}}
- <div class="action-icons">
- {{#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 enableAnkiConnect}}
+ <div class="action-icons">
+ {{#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}}
- {{/with}}
- </div>
+ {{#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}}
+ {{/with}}
+ </div>
+ {{/if}}
{{/with}}
{{#if reading}}