Skip to content
Snippets Groups Projects
Commit b07c43de authored by Ben Adida's avatar Ben Adida
Browse files

Merge pull request #82 from benadida/update-to-django-1.6

update to django 1.6
parents d61f5dbd 70571930
Branches
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</p> </p>
<p> <p>
Visit the <a href="{% url helios.views.one_election_view election.uuid %}">election homepage</a>. Visit the <a href="{% url "helios.views.one_election_view" election.uuid %}">election homepage</a>.
</p> </p>
{% endblock %} {% endblock %}
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
</p> </p>
<p> <p>
<a href="{% url helios.views.one_election_view election.uuid %}">view the election</a> <a href="{% url "helios.views.one_election_view" election.uuid %}">view the election</a>
</p> </p>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -28,7 +28,7 @@ More than <b>100,000 votes</b> have been cast using Helios. ...@@ -28,7 +28,7 @@ More than <b>100,000 votes</b> have been cast using Helios.
</p> </p>
{% if create_p %} {% if create_p %}
<a class="button" href="{% url helios.views.election_new %}">create an election</a> <a class="button" href="{% url "helios.views.election_new" %}">create an election</a>
{% endif %} {% endif %}
{% else %} {% else %}
...@@ -40,7 +40,7 @@ More than <b>100,000 votes</b> have been cast using Helios. ...@@ -40,7 +40,7 @@ More than <b>100,000 votes</b> have been cast using Helios.
<p> <p>
{% for election in elections %} {% for election in elections %}
<div class="panel"> <div class="panel">
<a style="font-size: 1.4em;" href="{% url helios.views.election_shortcut election.short_name %}">{{election.name}}</a>{% if settings.SHOW_USER_INFO %}<br /> by {{election.admin.display_html_small|safe}}{% endif %} <a style="font-size: 1.4em;" href="{% url "helios.views.election_shortcut" election.short_name %}">{{election.name}}</a>{% if settings.SHOW_USER_INFO %}<br /> by {{election.admin.display_html_small|safe}}{% endif %}
</div> </div>
<br /> <br />
{% endfor %} {% endfor %}
...@@ -58,19 +58,19 @@ More than <b>100,000 votes</b> have been cast using Helios. ...@@ -58,19 +58,19 @@ More than <b>100,000 votes</b> have been cast using Helios.
{% if user %} {% if user %}
<!--<div class="row right">{{user.display_html_big|safe}}</div>--> <!--<div class="row right">{{user.display_html_big|safe}}</div>-->
{% if create_p %} {% if create_p %}
<a class="small button" href="{% url helios.views.election_new %}">create election</a> <a class="small button" href="{% url "helios.views.election_new" %}">create election</a>
<h5 class="subheader">Administration</h5> <h5 class="subheader">Administration</h5>
{% if elections_administered %} {% if elections_administered %}
<ul> <ul>
{% for election in elections_administered %} {% for election in elections_administered %}
<li> <a href="{% url helios.views.one_election_view election.uuid %}">{{election.name}}</a></li> <li> <a href="{% url "helios.views.one_election_view" election.uuid %}">{{election.name}}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
<em>none yet</em> <em>none yet</em>
{% endif %} {% endif %}
<div class="row right"> <div class="row right">
<a class="tiny button" href="{% url helios.views.elections_administered %}">see all</a> <a class="tiny button" href="{% url "helios.views.elections_administered" %}">see all</a>
</div> </div>
<div class="row"></div> <div class="row"></div>
{% endif %} {% endif %}
...@@ -79,13 +79,13 @@ More than <b>100,000 votes</b> have been cast using Helios. ...@@ -79,13 +79,13 @@ More than <b>100,000 votes</b> have been cast using Helios.
{% if elections_voted %} {% if elections_voted %}
<ul> <ul>
{% for election in elections_voted %} {% for election in elections_voted %}
<li><a href="{% url helios.views.one_election_view election.uuid %}">{{election.name}}</a></li> <li><a href="{% url "helios.views.one_election_view" election.uuid %}">{{election.name}}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
<em>none yet</em> <em>none yet</em>
{% endif %} {% endif %}
<div class="row right"><a class="tiny button" href="{% url helios.views.elections_voted %}">see all</a></div> <div class="row right"><a class="tiny button" href="{% url "helios.views.elections_voted" %}">see all</a></div>
<div class="row"></div> <div class="row"></div>
{% else %} {% else %}
{% if settings.SHOW_LOGIN_OPTIONS %} {% if settings.SHOW_LOGIN_OPTIONS %}
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django.conf.urls.defaults import * from django.conf.urls import *
from views import * from views import *
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django.conf.urls.defaults import * from django.conf.urls import *
from django.contrib import admin from django.contrib import admin
from django.conf import settings from django.conf import settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment