summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-12-11 12:09:02 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-12-11 12:09:02 +0100
commite2c9d49a368b53850769b9da1c5ea2cd8cbb18b9 (patch)
treec8261014dbbe0b0a0243425e1a97060f52904e70 /ishtar_common
parent4d2e516554f0bb21c2dda8dd4618e2e6dfd26237 (diff)
downloadIshtar-e2c9d49a368b53850769b9da1c5ea2cd8cbb18b9.tar.bz2
Ishtar-e2c9d49a368b53850769b9da1c5ea2cd8cbb18b9.zip
History only for superuser
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_nav.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html
index 60e620f16..1d8121faf 100644
--- a/ishtar_common/templates/ishtar/blocks/window_nav.html
+++ b/ishtar_common/templates/ishtar/blocks/window_nav.html
@@ -1,5 +1,6 @@
{% load i18n ishtar_helpers %}
<div class="row toolbar">
+ {% if current_user.is_superuser %}
{% if previous or next %}
<div class='col-md-2'>
<div class="btn-group btn-group-sm" role="group" aria-label="{% trans 'History'%}">
@@ -31,6 +32,9 @@
{% else %}
<div class='offset-md-6 col-md-6 text-right'>
{% endif %}
+ {% else %}
+ <div class='offset-md-6 col-md-6 text-right'>
+ {% endif %}
{% if pin_action and item.SLUG %}
<div class="btn-group btn-group-sm" role="group"
aria-label="{% trans 'Pin' %}">