summaryrefslogtreecommitdiff
path: root/util/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'util/tmpl')
-rw-r--r--util/tmpl/kanji-list.html2
-rw-r--r--util/tmpl/kanji.html8
2 files changed, 9 insertions, 1 deletions
diff --git a/util/tmpl/kanji-list.html b/util/tmpl/kanji-list.html
index 542a5e2f..23e4d13f 100644
--- a/util/tmpl/kanji-list.html
+++ b/util/tmpl/kanji-list.html
@@ -1,5 +1,5 @@
{{> header.html}}
{{#each defs}}
-{{> kanji.html}}
+{{> kanji.html root=../root}}
{{/each}}
{{> footer.html}}
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index c1883b19..e74fb5ae 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,5 +1,13 @@
<div class="kanji-definition">
+ <div class="action-icons">
+ {{#with addable}}
+ {{#if kanji}}<a href="#" title="Add Kanji"><img src="{{../root}}/img/icon_add_expression.png"></a>{{/if}}
+ {{/with}}
+ <a href="#" title="Copy definition"><img src="{{root}}/img/icon_copy_definition.png"></a>
+ </div>
+
<div class="kanji-glyph">{{character}}</div>
+
<div class="kanji-info">
<dl>
{{#if glossary}}