summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/tmpl/kanji.html20
-rw-r--r--util/tmpl/term.html32
2 files changed, 27 insertions, 25 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index 8aab5f18..d30499ea 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,16 +1,16 @@
<div class="kanji-definition">
{{#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 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>
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}}