2012-02-06 22:08:08 +01:00
|
|
|
{% extends "base-projector.html" %}
|
2012-02-21 08:21:59 +01:00
|
|
|
|
2011-07-31 10:46:29 +02:00
|
|
|
{% load tags %}
|
2012-02-21 08:21:59 +01:00
|
|
|
{% load i18n %}
|
2012-04-14 14:51:56 +02:00
|
|
|
{% load staticfiles %}
|
2012-02-21 08:21:59 +01:00
|
|
|
|
2011-07-31 10:46:29 +02:00
|
|
|
{% block title %}{{ block.super }} - {{ item.title }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div id="sidebar">
|
|
|
|
<div class="box">
|
2011-09-08 18:57:11 +02:00
|
|
|
<p><b>{%trans "Status" %}:</b><br>
|
2012-02-03 23:12:28 +01:00
|
|
|
{% if application.status != "pub" %}
|
|
|
|
{%trans application.get_status_display %}
|
2011-09-08 18:57:11 +02:00
|
|
|
<br>
|
|
|
|
{% else %}
|
2012-02-03 23:12:28 +01:00
|
|
|
{% for note in application.notes %}
|
2011-09-08 18:57:11 +02:00
|
|
|
{{ note }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2011-09-08 18:57:11 +02:00
|
|
|
<p><b>{% trans "Submitter" %}:</b><br>
|
2012-02-03 23:12:28 +01:00
|
|
|
{{ application.submitter.profile }}</p>
|
2012-04-16 17:21:41 +02:00
|
|
|
{% with application.polls as polls %}
|
|
|
|
{% if polls.exists and polls.0.has_votes %}
|
2011-09-08 18:57:11 +02:00
|
|
|
<p><b>{% trans "Poll result" %}:</b></p>
|
2012-04-16 17:21:41 +02:00
|
|
|
{% for poll in polls %}
|
|
|
|
{% if poll.has_votes %}
|
2011-09-08 18:57:11 +02:00
|
|
|
{% if polls|length > 1 %}
|
|
|
|
{{forloop.counter}}. {% trans "Vote" %}:<br>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
2012-04-16 17:21:41 +02:00
|
|
|
{% with poll.get_options.0 as option %}
|
2012-04-19 11:08:22 +02:00
|
|
|
<img src="{% static 'images/icons/voting-yes.png' %}" title="{% trans 'Yes' %}"> {{ option.Yes }} <br>
|
|
|
|
<img src="{% static 'images/icons/voting-no.png' %}" title="{% trans 'No' %}"> {{ option.No }} <br>
|
|
|
|
<img src="{% static 'images/icons/voting-abstention.png' %}" title="{% trans 'Abstention' %}"> {{ option.Abstain }}<br>
|
2012-04-16 17:21:41 +02:00
|
|
|
<img src="{% static 'images/icons/voting-invalid.png' %}" title="{% trans 'Invalid' %}"> {{ poll.print_votesinvalid }}<br>
|
2011-09-11 22:43:15 +02:00
|
|
|
<div style="border-top: 1px solid; padding-top: 5px; margin: 5px 0; width: 10em;">
|
2012-04-16 17:21:41 +02:00
|
|
|
<img src="{% static 'images/icons/voting-total.png' %}" title="{% trans 'Votes cast' %}"> {{ poll.print_votescast }}
|
2011-09-08 18:57:11 +02:00
|
|
|
</div>
|
2012-04-16 17:21:41 +02:00
|
|
|
{% endwith %}
|
2011-07-31 10:46:29 +02:00
|
|
|
<br>
|
|
|
|
{% else %}
|
|
|
|
{% if poll|length == 1 %}
|
|
|
|
<i>{% trans "No poll results available." %}</i>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-09-09 22:34:55 +02:00
|
|
|
|
2012-02-03 23:12:28 +01:00
|
|
|
<h1>{% trans "Application No." %} {{ application.number }}</h1>
|
2012-04-19 11:10:36 +02:00
|
|
|
<h2>{{ application.title }}</h2>
|
2011-09-08 18:57:11 +02:00
|
|
|
<b>{{ item.title }}</b>
|
2011-07-31 10:46:29 +02:00
|
|
|
<p>
|
2012-02-03 23:12:28 +01:00
|
|
|
<div class="text">{{ application.public_version.text|linebreaks }}</div>
|
|
|
|
{% if application.public_version.reason %}
|
2011-09-08 18:57:11 +02:00
|
|
|
<br>
|
|
|
|
<div class="reason"><p><b>{% trans "Reason" %}:</b></p>
|
2012-02-03 23:12:28 +01:00
|
|
|
{{ application.public_version.reason|linebreaks }}</div>
|
2011-09-08 18:57:11 +02:00
|
|
|
{% endif %}
|
2011-07-31 10:46:29 +02:00
|
|
|
</p>
|
|
|
|
{% endblock %}
|