summaryrefslogtreecommitdiff
path: root/util/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-03 20:53:53 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-03 20:53:53 -0700
commitf535683e9b35aabe0c481bf5e4b040dc40d019e7 (patch)
treeeb512db85b71ae5c596bb8be35083c268df7f540 /util/tmpl
parent5eea27004c332dc1fc9ab6b583b5a21b4408b6b2 (diff)
WIP
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}}