aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/manage.html.j21
-rw-r--r--templates/poll_vote_list.html.j26
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/manage.html.j2 b/templates/manage.html.j2
index 4a5da8d..db7da0b 100644
--- a/templates/manage.html.j2
+++ b/templates/manage.html.j2
@@ -3,6 +3,7 @@
{% block content %}
<h2>Managing poll <span class="contrast">{{ poll.title }}</span> by <i>{{ poll.author_name }}</i></h2>
+<p>{{ poll.pub_date_formatted_notz() }}.</p>
<p>
Share this URL with your peers:<br>
diff --git a/templates/poll_vote_list.html.j2 b/templates/poll_vote_list.html.j2
index 845356b..a9b2a48 100644
--- a/templates/poll_vote_list.html.j2
+++ b/templates/poll_vote_list.html.j2
@@ -10,8 +10,10 @@
<i>{{ choice.votes | length }} votes</i>
</span>
<div>
- {% if choice.votes | length != 0 %}
- Voted by: {% for vote in choice.votes %}{{ vote.voter_name }}{% if not loop.last %}, {% endif %}{% endfor %}
+ {% if choice.votes_with_value(1) | length != 0 %}
+ Voted by: {% for vote in choice.votes_with_value(1) %}
+ {{ vote.voter_name }}{% if not loop.last %}, {% endif %}
+ {% endfor %}
{% endif %}
</div>
</label>