From 1e2a249c537ba4b0eb4b07b855511dec20d45c88 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 3 May 2016 20:25:35 -0700 Subject: Show action icons --- util/tmpl/term-list.html | 2 +- util/tmpl/term.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/tmpl/term-list.html b/util/tmpl/term-list.html index 6206f323..9199092c 100644 --- a/util/tmpl/term-list.html +++ b/util/tmpl/term-list.html @@ -1,5 +1,5 @@ {{> header.html}} {{#each defs}} -{{> term.html}} +{{> term.html root=../root}} {{/each}} {{> footer.html}} diff --git a/util/tmpl/term.html b/util/tmpl/term.html index 0daf9f49..f31d9da0 100644 --- a/util/tmpl/term.html +++ b/util/tmpl/term.html @@ -1,4 +1,12 @@
+
+ {{#with addable}} + {{#if vocabExp}}{{/if}} + {{#if vocabReading}}{{/if}} + {{/with}} + +
+ {{#if reading}}
{{#kanjiLinks}}{{expression}}{{/kanjiLinks}}{{reading}}
{{else}} -- cgit v1.2.3