From 22ff1f869537b4ffb3c12ed9d1f101629e06e35a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 4 May 2016 19:10:28 -0700 Subject: Simplify templates --- util/tmpl/kanji.html | 8 ++------ util/tmpl/term.html | 15 +++------------ 2 files changed, 5 insertions(+), 18 deletions(-) (limited to 'util') diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html index d30499ea..55cf6b2e 100644 --- a/util/tmpl/kanji.html +++ b/util/tmpl/kanji.html @@ -1,13 +1,9 @@
{{#with options}} {{#if enableAnkiConnect}} -
+
{{#with ../addable}} - {{#if kanji}} - - {{else}} - - {{/if}} + {{/with}}
{{/if}} diff --git a/util/tmpl/term.html b/util/tmpl/term.html index e1ed005e..7d0d75d1 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -3,19 +3,10 @@ {{#with options}} {{#if enableAnkiConnect}} -
+
{{#with ../addable}} - {{#if vocabExp}} - - {{else}} - - {{/if}} - - {{#if vocabReading}} - - {{else}} - - {{/if}} + + {{/with}}
{{/if}} -- cgit v1.2.3