summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-28 18:06:24 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-28 18:06:24 +0200
commit1f2734863f2f9213fd6c2db196d2b20969a7ee99 (patch)
tree23c0596ec4e30b6bf1643ef4e51d85a05ed678de /tmpl
parent2e04f752a53017c1a2dfa24fe09ff0dbe19b216c (diff)
Display history navigation buttons fixed position
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/kanji.html12
-rw-r--r--tmpl/terms.html12
2 files changed, 10 insertions, 14 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index 35f997dc..8c79e9dd 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -20,12 +20,6 @@ No data found
<a href="#" class="action-view-note pending disabled"><img src="/mixed/img/view-note.svg" title="View added note (Alt + V)" alt></a>
<a href="#" class="action-add-note pending disabled" data-mode="kanji"><img src="/mixed/img/add-term-kanji.svg" title="Add Kanji (Alt + K)" alt></a>
{{/if}}
- {{#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>
@@ -94,9 +88,13 @@ No data found
{{/inline}}
{{#if definitions}}
+<div class="term-navigation">
+ <a href="#" {{#if source}}class="source-term"{{else}}class="source-term term-button-fade"{{/if}}><img src="/mixed/img/source-term.svg" title="Source term (Alt + B)" alt></a>
+ <a href="#" {{#if history}}class="history-term"{{else}}class="history-term term-button-fade"{{/if}}><img src="/mixed/img/source-term.svg" style="transform: scaleX(-1);" title="History term (Alt + F)" alt></a>
+</div>
{{#each definitions}}
{{#unless @first}}<hr>{{/unless}}
-{{> kanji debug=../debug addable=../addable source=../source history=../history root=../root}}
+{{> kanji debug=../debug addable=../addable root=../root}}
{{/each}}
{{else}}
<p class="note">No results found</p>
diff --git a/tmpl/terms.html b/tmpl/terms.html
index 5e4e694a..2f727365 100644
--- a/tmpl/terms.html
+++ b/tmpl/terms.html
@@ -41,12 +41,6 @@
<a href="#" class="action-play-audio"><img src="/mixed/img/play-audio.svg" title="Play audio (Alt + P)" alt></a>
{{/if}}
{{/unless}}
- {{#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>
@@ -132,9 +126,13 @@
{{/inline}}
{{#if definitions}}
+<div class="term-navigation">
+ <a href="#" {{#if source}}class="source-term"{{else}}class="source-term term-button-fade"{{/if}}><img src="/mixed/img/source-term.svg" title="Source term (Alt + B)" alt></a>
+ <a href="#" {{#if history}}class="history-term"{{else}}class="history-term term-button-fade"{{/if}}><img src="/mixed/img/source-term.svg" style="transform: scaleX(-1);" title="History term (Alt + F)" alt></a>
+</div>
{{#each definitions}}
{{#unless @first}}<hr>{{/unless}}
-{{> term debug=../debug grouped=../grouped merged=../merged addable=../addable playback=../playback compactGlossaries=../compactGlossaries source=../source history=../history}}
+{{> term debug=../debug grouped=../grouped merged=../merged addable=../addable playback=../playback compactGlossaries=../compactGlossaries}}
{{/each}}
{{else}}
<p class="note">No results found.</p>