summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-23 20:29:38 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-23 20:29:38 +0200
commit96f4c36d7ce223e00e0db538656448b605042a8b (patch)
tree86d330db04ed021b1488b86d3ff6d817eee69a23
parent4c16525170ae7e4d6072ccbcf15e0bc6dafbfe0a (diff)
downloadIshtar-96f4c36d7ce223e00e0db538656448b605042a8b.tar.bz2
Ishtar-96f4c36d7ce223e00e0db538656448b605042a8b.zip
UI sheet: add spaces to maintain previous position when no restaore and next arrow is displayed
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_nav.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html
index e9709bb76..9a17419a8 100644
--- a/ishtar_common/templates/ishtar/blocks/window_nav.html
+++ b/ishtar_common/templates/ishtar/blocks/window_nav.html
@@ -10,6 +10,8 @@
</span>
<br/>{{previous}}
</a>
+{% else %}
+<span class='history-nav'> </span>
{% endif %}
{% if next %}
<a class='history-nav' title="{% trans 'Restore this version' %}" href="#" onclick='if(confirm("{%trans 'Are you sure to restore to this version? All changement made since this version will be lost.' %}")){load_url("{% url revert_url item.pk item.history_date|date:"c"%}");closeAllWindows();load_window("{% url show_url item.pk None %}");}'>
@@ -26,6 +28,9 @@
</span>
<br/>{{next}}
</a>
+{% else %}
+<span class='history-nav'> </span>
+<span class='history-nav'> </span>
{% endif %}
</div>
{% endif %}