From 196ad217b04f0ecf0049f4d3e5d4324cdafc69db Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 11 Mar 2013 23:58:45 +0100 Subject: [PATCH] Fixed version history. --- .../motion/templates/motion/motion_detail.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/openslides/motion/templates/motion/motion_detail.html b/openslides/motion/templates/motion/motion_detail.html index a9de961b6..231854e97 100644 --- a/openslides/motion/templates/motion/motion_detail.html +++ b/openslides/motion/templates/motion/motion_detail.html @@ -58,10 +58,10 @@
{% if motion.active_version.id != motion.version.id %} - {% if motion.version == motion.public_version %} - {% trans "This is not the newest version." %} {% trans "Go to version" %} {{ motion.last_version.version_number }}. + {% if motion.version.version_number < motion.last_version.version_number %} + {% trans "This is not the newest version." %} {% trans "Go to version" %} {{ motion.last_version.version_number }}. {% else %} - {% trans "This is not the authorized version." %} {% trans "Go to version" %} {{ motion.public_version.aid }}. + {% trans "This is not the authorized version." %} {% trans "Go to version" %} {{ motion.active_version.version_number }}. {% endif %} {% endif %} @@ -99,10 +99,10 @@ {% else %} {% if perms.motion.can_manage_motion %} - + {% endif %} {% if not version.rejected and version.id > motion.active_version.id and perms.motion.can_manage_motion %} - + {% endif %} {% endif %} {% if version.rejected %} @@ -247,6 +247,10 @@ {% endif %} {% endwith %} + +
{% trans "Category" %}:
+ {{ motion.category }} +
{% trans "Creation Time" %}:
{# TODO: use creation time of _first_ version #} @@ -287,7 +291,7 @@

{% trans "Manage motion" %}

-
+
{% for state in motion.state.next_states.all %} {{ state }} {% endfor %}