diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-05 21:23:30 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-05 21:23:30 (GMT) |
commit | 5fa1f0ede8a7732adec5643c3142f1976e13e3c2 (patch) | |
tree | 6746e951d3f36adaa8d66a7b403e68a1d84e4b00 | |
parent | ef988d400083180112ad33a95ff89a6528284013 (diff) |
Passing Feature: Result page for a poll needs poll name
-rw-r--r-- | webapp/sociologist/templates/poll-result-list.html | 1 | ||||
-rw-r--r-- | webapp/sociologist/views.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/webapp/sociologist/templates/poll-result-list.html b/webapp/sociologist/templates/poll-result-list.html index 457585d..9e1f969 100644 --- a/webapp/sociologist/templates/poll-result-list.html +++ b/webapp/sociologist/templates/poll-result-list.html @@ -8,6 +8,7 @@ {% block main_container %} <div class="row-fluid"> + <div><h2>{{ poll_name }}</h2></div> <center> <a name="download_results_as_csv" class="btn btn-default" href="{% url sociologist:csv_download poll_id %}"> <i class="icon-download"></i> Descargar resultados (csv) diff --git a/webapp/sociologist/views.py b/webapp/sociologist/views.py index f521bda..85066a9 100644 --- a/webapp/sociologist/views.py +++ b/webapp/sociologist/views.py @@ -64,6 +64,7 @@ class PollResultListView(TemplateView): context['poll_results'] = poll_results context['poll_id'] = str(poll.id) + context['poll_name'] = poll.name.capitalize() return context |