aboutsummaryrefslogtreecommitdiff
path: root/tmpl/term.html
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/term.html
parent6005b10f87318d102ac45800940390a3d9fbe1c9 (diff)
don't show add buttons till we know card state for #25
Diffstat (limited to 'tmpl/term.html')
-rw-r--r--tmpl/term.html8
1 files changed, 4 insertions, 4 deletions
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}}