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
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
</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>
{% endblock %}
......@@ -9,6 +9,6 @@
</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>
{% endblock %}
\ No newline at end of file
......@@ -28,7 +28,7 @@ More than <b>100,000 votes</b> have been cast using Helios.
</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 %}
{% else %}
......@@ -40,7 +40,7 @@ More than <b>100,000 votes</b> have been cast using Helios.
<p>
{% for election in elections %}
<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>
<br />
{% endfor %}
......@@ -58,19 +58,19 @@ More than <b>100,000 votes</b> have been cast using Helios.
{% if user %}
<!--<div class="row right">{{user.display_html_big|safe}}</div>-->
{% 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>
{% if elections_administered %}
<ul>
{% 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 %}
</ul>
{% else %}
<em>none yet</em>
{% endif %}
<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 class="row"></div>
{% endif %}
......@@ -79,13 +79,13 @@ More than <b>100,000 votes</b> have been cast using Helios.
{% if elections_voted %}
<ul>
{% 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 %}
</ul>
{% else %}
<em>none yet</em>
{% 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>
{% else %}
{% if settings.SHOW_LOGIN_OPTIONS %}
......
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.conf.urls import *
from views import *
......
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.conf.urls import *
from django.contrib import admin
from django.conf import settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment