diff options
Diffstat (limited to 'util/tmpl')
-rw-r--r-- | util/tmpl/kanji.html | 7 | ||||
-rw-r--r-- | util/tmpl/term.html | 14 |
2 files changed, 16 insertions, 5 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html index e74fb5ae..7f797c4b 100644 --- a/util/tmpl/kanji.html +++ b/util/tmpl/kanji.html @@ -1,9 +1,12 @@ <div class="kanji-definition"> <div class="action-icons"> {{#with addable}} - {{#if kanji}}<a href="#" title="Add Kanji"><img src="{{../root}}/img/icon_add_expression.png"></a>{{/if}} + {{#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}} - <a href="#" title="Copy definition"><img src="{{root}}/img/icon_copy_definition.png"></a> </div> <div class="kanji-glyph">{{character}}</div> diff --git a/util/tmpl/term.html b/util/tmpl/term.html index f31d9da0..3d3d4eb0 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -1,10 +1,18 @@ <div class="term-definition"> <div class="action-icons"> {{#with addable}} - {{#if vocabExp}}<a href="#" title="Add as expression"><img src="{{../root}}/img/icon_add_expression.png"></a>{{/if}} - {{#if vocabReading}}<a href="#" title="Add as reading"><img src="{{../root}}/img/icon_add_reading.png"></a>{{/if}} + {{#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}} - <a href="#" title="Copy definition"><img src="{{root}}/img/icon_copy_definition.png"></a> </div> {{#if reading}} |