diff options
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/kanji.html | 9 | ||||
-rw-r--r-- | tmpl/term.html | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html index 81ead584..3e148aae 100644 --- a/tmpl/kanji.html +++ b/tmpl/kanji.html @@ -1,10 +1,10 @@ <div class="kanji-definition"> {{#with options}} - {{#if enableAnkiConnect}} - <div class="action-bar"> - <a href="#" title="Add Kanji" class="action-link disabled" data-sequence="{{../sequence}}" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_kanji.png"></a> + <div class="action-bar" data-sequence="{{../sequence}}"> + {{#if enableAnkiConnect}} + <a href="#" title="Add Kanji" class="action-add-note disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_kanji.png"></a> + {{/if}} </div> - {{/if}} {{/with}} <div class="kanji-glyph">{{character}}</div> @@ -40,4 +40,3 @@ </dl> </div> </div> -</div> diff --git a/tmpl/term.html b/tmpl/term.html index 1bb79375..620b5ace 100644 --- a/tmpl/term.html +++ b/tmpl/term.html @@ -5,8 +5,8 @@ <a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="{{../root}}/img/play_audio.png"></a> {{/if}} {{#if enableAnkiConnect}} - <a href="#" title="Add term as expression" class="action-add-note disabled" data-mode="vocab_kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_vocab_kanji.png"></a> - <a href="#" title="Add term as reading" class="action-add-note disabled" data-mode="vocab_kana" data-index="{{@index}}"><img src="{{../root}}/img/add_vocab_kana.png"></a> + <a href="#" title="Add vocabulary as expression" class="action-add-note disabled" data-mode="vocab_kanji" data-index="{{@index}}"><img src="{{../root}}/img/add_vocab_kanji.png"></a> + <a href="#" title="Add vocabulary as reading" class="action-add-note disabled" data-mode="vocab_kana" data-index="{{@index}}"><img src="{{../root}}/img/add_vocab_kana.png"></a> {{/if}} </div> {{/with}} |