From 85d61d38e533e966d36d4cced9e00cb5d7d975a1 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 8 Sep 2011 16:39:41 +0200 Subject: [PATCH] Added publish/unpublish icon. --- openslides/assignment/templates/assignment/view.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/openslides/assignment/templates/assignment/view.html b/openslides/assignment/templates/assignment/view.html index 9830e24f3..b5a886dc4 100644 --- a/openslides/assignment/templates/assignment/view.html +++ b/openslides/assignment/templates/assignment/view.html @@ -126,15 +126,19 @@ {% trans "Candidates" %} {% for poll in assignment.poll_set.all %} {% if perms.assignment.can_manage_assignment %}{% endif %} - {{ forloop.counter }}. + {{ forloop.counter }}. {% trans 'ballot' %} {% if perms.assignment.can_manage_assignment %} - {% if poll.published %} - unpublish + {% else %} - publish + {% endif %} + {% endif %} {% endfor %}