From 7d93587acb250266782e3788894a9e26ddf1eaa5 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 19 Oct 2016 08:52:22 -0700 Subject: Conditionally show add buttons --- tmpl/term.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'tmpl/term.html') diff --git a/tmpl/term.html b/tmpl/term.html index aff3e2ff..7d60e42a 100644 --- a/tmpl/term.html +++ b/tmpl/term.html @@ -1,15 +1,13 @@
- {{#with options}} -
- {{#if enableAudioPlayback}} - +
+ {{#if options.enableAudioPlayback}} + {{/if}} - {{#if enableAnkiConnect}} - - + {{#if addable}} + + {{/if}}
- {{/with}} {{#if reading}}
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}{{reading}}
-- cgit v1.2.3