summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-28 15:20:18 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-28 15:20:18 +0200
commitbeea89a421736ec157e196ffca6b3720a811635d (patch)
tree9c46b264f942a1aa2a7f3356e7997547e5bdae45 /tmpl
parent4e7d08ff2c184a361622a6efaf00e21af51428a9 (diff)
store popped context history in Display
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/kanji.html5
-rw-r--r--tmpl/terms.html5
2 files changed, 8 insertions, 2 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index c3064526..35f997dc 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -23,6 +23,9 @@ No data found
{{#if source}}
<a href="#" class="source-term"><img src="/mixed/img/source-term.svg" title="Source term (Alt + B)" alt></a>
{{/if}}
+ {{#if history}}
+ <a href="#" class="history-term"><img src="/mixed/img/source-term.svg" style="transform: scaleX(-1);" title="History term (Alt + F)" alt></a>
+ {{/if}}
<img src="/mixed/img/entry-current.svg" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
</div>
@@ -93,7 +96,7 @@ No data found
{{#if definitions}}
{{#each definitions}}
{{#unless @first}}<hr>{{/unless}}
-{{> kanji debug=../debug addable=../addable source=../source root=../root}}
+{{> kanji debug=../debug addable=../addable source=../source history=../history root=../root}}
{{/each}}
{{else}}
<p class="note">No results found</p>
diff --git a/tmpl/terms.html b/tmpl/terms.html
index 993b5aa0..5e4e694a 100644
--- a/tmpl/terms.html
+++ b/tmpl/terms.html
@@ -44,6 +44,9 @@
{{#if source}}
<a href="#" class="source-term"><img src="/mixed/img/source-term.svg" title="Source term (Alt + B)" alt></a>
{{/if}}
+ {{#if history}}
+ <a href="#" class="history-term"><img src="/mixed/img/source-term.svg" style="transform: scaleX(-1);" title="History term (Alt + F)" alt></a>
+ {{/if}}
<img src="/mixed/img/entry-current.svg" class="current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)" alt>
</div>
@@ -131,7 +134,7 @@
{{#if definitions}}
{{#each definitions}}
{{#unless @first}}<hr>{{/unless}}
-{{> term debug=../debug grouped=../grouped merged=../merged addable=../addable playback=../playback compactGlossaries=../compactGlossaries source=../source}}
+{{> term debug=../debug grouped=../grouped merged=../merged addable=../addable playback=../playback compactGlossaries=../compactGlossaries source=../source history=../history}}
{{/each}}
{{else}}
<p class="note">No results found.</p>