summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-03 22:17:53 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-03 22:17:53 -0800
commit8049c6083ef6e709e92ea5f230cd8a764931b875 (patch)
tree695942474653b64f4caaf67071394f48946101e2 /tmpl
parent6005b10f87318d102ac45800940390a3d9fbe1c9 (diff)
don't show add buttons till we know card state for #25
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/kanji.html2
-rw-r--r--tmpl/term.html8
2 files changed, 5 insertions, 5 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index e22dd660..1dc19983 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -1,7 +1,7 @@
<div class="kanji-definition">
<div class="action-bar" data-sequence="{{sequence}}">
{{#if addable}}
- <a href="#" title="Add Kanji" class="action-add-note disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{root}}/img/add_kanji.png"></a>
+ <a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="{{root}}/img/add_kanji.png"></a>
{{/if}}
</div>
diff --git a/tmpl/term.html b/tmpl/term.html
index e4a0d02b..e931e5cf 100644
--- a/tmpl/term.html
+++ b/tmpl/term.html
@@ -1,12 +1,12 @@
<div class="term-definition">
<div class="action-bar" data-sequence="{{sequence}}">
+ {{#if addable}}
+ <a href="#" title="Add term as expression" class="action-add-note pending disabled" data-mode="term_kanji" data-index="{{@index}}"><img src="{{root}}/img/add_term_kanji.png"></a>
+ <a href="#" title="Add term as reading" class="action-add-note pending disabled" data-mode="term_kana" data-index="{{@index}}"><img src="{{root}}/img/add_term_kana.png"></a>
+ {{/if}}
{{#if options.enableAudioPlayback}}
<a href="#" title="Play audio" class="action-play-audio" data-index="{{@index}}"><img src="{{root}}/img/play_audio.png"></a>
{{/if}}
- {{#if addable}}
- <a href="#" title="Add term as expression" class="action-add-note disabled" data-mode="term_kanji" data-index="{{@index}}"><img src="{{root}}/img/add_term_kanji.png"></a>
- <a href="#" title="Add term as reading" class="action-add-note disabled" data-mode="term_kana" data-index="{{@index}}"><img src="{{root}}/img/add_term_kana.png"></a>
- {{/if}}
</div>
{{#if reading}}