diff options
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 |
commit | 04835942422a50ee8a4d6c09046153a48ff1d2e7 (patch) | |
tree | 86d330db04ed021b1488b86d3ff6d817eee69a23 /ishtar_common | |
parent | b360702b26ce31d4e77b7b2de051fc41aab4ea07 (diff) | |
download | Ishtar-04835942422a50ee8a4d6c09046153a48ff1d2e7.tar.bz2 Ishtar-04835942422a50ee8a4d6c09046153a48ff1d2e7.zip |
UI sheet: add spaces to maintain previous position when no restaore and next arrow is displayed
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_nav.html | 5 |
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 %} |