From d918868b6f14d1c466afa7d41290625fafc770c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Wed, 5 Jul 2017 17:31:08 +0200 Subject: [PATCH] move around changeset buttons --- .../editor/templates/editor/changeset.html | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/c3nav/editor/templates/editor/changeset.html b/src/c3nav/editor/templates/editor/changeset.html index 2e650afb..9676fa4e 100644 --- a/src/c3nav/editor/templates/editor/changeset.html +++ b/src/c3nav/editor/templates/editor/changeset.html @@ -27,14 +27,6 @@ {% blocktrans %}last update at {{ datetime }}{% endblocktrans %} {% endwith %}

-

- {% if not active and not changeset.closed %} - - {% endif %} - {% if can_edit %} - {% trans 'Edit' %} - {% endif %} -

{% bootstrap_messages %} {% if changeset.last_state_update and changeset.state != 'unproposed' %}
@@ -115,15 +107,25 @@ {% endfor %} {% buttons %} - {% if can_delete %} - + {% if active %} + {% if can_delete %} + + {% endif %} + {% endif %} + {% if can_unpropose %} + {% endif %}
- {% if can_edit and not changeset.proposed %} - + {% if active %} + {% if can_edit %} + {% trans 'Edit' %} + {% endif %} + {% if can_edit and not changeset.proposed and active %} + + {% endif %} {% endif %} - {% if can_unpropose %} - + {% if not active and not changeset.closed %} + {% endif %}
{% endbuttons %}