summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authoretienne2008-12-16 21:55:14 +0000
committeretienne2008-12-16 21:55:14 +0000
commit7e1a52328266738aaf7887169209bf77a3cf5ba2 (patch)
treefb0e932d0bfe76c2ccca33e0048b23af2f4a22d7 /templates
parentd70651257eb7651fe05efe7f623984cfdd7ad16c (diff)
Improvement of syndication
Diffstat (limited to 'templates')
-rw-r--r--templates/feeds/poll_description.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/feeds/poll_description.html b/templates/feeds/poll_description.html
new file mode 100644
index 0000000..7522a5a
--- /dev/null
+++ b/templates/feeds/poll_description.html
@@ -0,0 +1,8 @@
+{% load i18n %}
+<p>{% blocktrans with obj.user.name as voter_name %}{{ voter_name }} has added/modified a vote.{%endblocktrans%}</p>
+<p>{% trans "Current results:" %}</p>
+<ul>
+{% for choice in obj.poll.getChoices %}
+ <li><strong>{{choice.name}}</strong>{% blocktrans count choice.getSum as sum %}: {{sum}} vote{%plural%}: {{sum}} votes{%endblocktrans%}</li>
+{% endfor %}
+</ul> \ No newline at end of file