From e28c15eff9d4bdadbd7764f2c2b0ef1af736b11d Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 30 Apr 2012 08:23:50 +0200 Subject: [PATCH] Improve projector style of application voting results. --- .../templates/projector/Application.html | 22 +++++++++++++------ .../projector/static/styles/projector.css | 2 +- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/openslides/application/templates/projector/Application.html b/openslides/application/templates/projector/Application.html index 6e61b6b84..d18776717 100644 --- a/openslides/application/templates/projector/Application.html +++ b/openslides/application/templates/projector/Application.html @@ -10,8 +10,13 @@

{%trans "Status" %}:
{% if application.status != "pub" %} + {% if application.status == "acc" %} + + {% endif %} + {% if application.status == "rej" %} + + {% endif %} {%trans application.get_status_display %} -
{% else %} {% for note in application.notes %} {{ note }} @@ -20,31 +25,34 @@

{% trans "Submitter" %}:
- {{ application.submitter.profile }}

+ {{ application.submitter.profile }} +

+ {% with application.polls as polls %} {% if polls.exists and polls.0.has_votes %} -

{% trans "Poll result" %}:

+

{% trans "Poll result" %}:
{% for poll in polls %} {% if poll.has_votes %} {% if polls|length > 1 %} {{forloop.counter}}. {% trans "Vote" %}:
{% endif %} {% with poll.get_options.0 as option %} +

{{ option.Yes }}
{{ option.No }}
{{ option.Abstain }}
{{ poll.print_votesinvalid }}
-
- {{ poll.print_votescast }} -
+
+ {{ poll.print_votescast }} +
{% endwith %} -
{% else %} {% if poll|length == 1 %} {% trans "No poll results available." %} {% endif %} {% endif %} {% endfor %} +

{% endif %} {% endwith %}
diff --git a/openslides/projector/static/styles/projector.css b/openslides/projector/static/styles/projector.css index 8f0e09572..a71df8788 100644 --- a/openslides/projector/static/styles/projector.css +++ b/openslides/projector/static/styles/projector.css @@ -122,7 +122,7 @@ body{ color: #FAFAFB; } #sidebar { - width: 250px; + width: 255px; float: right; margin: 0 0 20px 10px; }