summaryrefslogtreecommitdiff
path: root/tmpl/kanji.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-17 21:03:52 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-17 21:03:52 -0700
commita55b74c92ecb21fb688d4199811c43dd3eeb3451 (patch)
treedb57d38aeeab83d8ba804d0bd8d2272db964a517 /tmpl/kanji.html
parent7e3a4ecf7dbd3abc803659f3b2ebd0f9e7acc835 (diff)
adding back link on kanji defs
Diffstat (limited to 'tmpl/kanji.html')
-rw-r--r--tmpl/kanji.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index 00e4efd7..8f52eb4a 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -4,6 +4,9 @@
{{#if addable}}
<a href="#" title="Add Kanji" class="action-add-note pending disabled" data-mode="kanji" data-index="{{@index}}"><img src="/mixed/img/add-kanji.png"></a>
{{/if}}
+ {{#if source}}
+ <a href="#" title="Source term" class="source-term"><img src="/mixed/img/source-term.png"></a>
+ {{/if}}
</div>
<div class="glyph">{{character}}</div>
@@ -46,15 +49,13 @@
<div class="glossary-item">{{#multiLine}}{{glossary.[0]}}{{/multiLine}}</div>
{{/if}}
</div>
-
- <a href="#" class="term-source">Back</a>
</div>
{{/inline}}
{{#if definitions}}
{{#each definitions}}
{{#unless @first}}<hr>{{/unless}}
- {{> kanji addable=../addable root=../root}}
+ {{> kanji addable=../addable source=../source root=../root}}
{{/each}}
{{else}}
<p>No results found.</p>