From 0cf4191934a61f6998707dd3608bec034b4a427f Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sat, 17 Nov 2012 23:44:41 +0100 Subject: [PATCH] Hide vote results if status is 'searching for candidates'. Hide blocked candidates title if empty. --- .../assignment/templates/assignment/view.html | 15 ++++++--------- .../templates/projector/Assignment.html | 2 -- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/openslides/assignment/templates/assignment/view.html b/openslides/assignment/templates/assignment/view.html index 0cf5ec548..a900a28fc 100644 --- a/openslides/assignment/templates/assignment/view.html +++ b/openslides/assignment/templates/assignment/view.html @@ -89,6 +89,7 @@ {% endif %} {% endif %} +{% if assignment.elected %}

{% trans "Elected Candidates" %}

+{% endif %} -{% if perms.assignment.can_manage_assignments %} +{% if perms.assignment.can_manage_assignments and blocked_candidates %}

{% trans "Blocked Candidates" %}

{% endif %} +{% if assignment.status != "sea" %}

{% trans "Election results" %}

{% if polls.exists %} @@ -215,7 +218,6 @@ {% endif %} - {% trans 'Votes cast' %} {% for poll in polls %} @@ -233,11 +235,8 @@ {% endif %} - {% else %} - - {% trans "No ballots available." %} - + {% trans "No results available." %} {% if assignment.candidates and perms.assignment.can_manage_assignment and assignment.status == "vot" %}

@@ -245,9 +244,7 @@

{% endif %} - {% endif %} - +{% endif %} - {% endblock %} diff --git a/openslides/assignment/templates/projector/Assignment.html b/openslides/assignment/templates/projector/Assignment.html index 8cf59860c..6a2a59b3c 100644 --- a/openslides/assignment/templates/projector/Assignment.html +++ b/openslides/assignment/templates/projector/Assignment.html @@ -124,8 +124,6 @@ {% elif some_polls_available %} {% trans "Vote results are not published yet." %} - {% elif assignment.candidates %} - {% trans "No ballots available." %} {% endif %}
{% endblock %}