summaryrefslogtreecommitdiff
path: root/papillon/templates/main.html
diff options
context:
space:
mode:
authorÉtienne Loks2011-10-25 00:17:19 +0200
committerÉtienne Loks2011-10-25 00:17:19 +0200
commite41e52768085a81b1b5d48f5f0583b6449179fa8 (patch)
treeda836b2f6390b6490fb3f8acfaea3aaa4a2ad7d5 /papillon/templates/main.html
parent2a50c79d3b9de35937c07c838205e25ad058b3e1 (diff)
Correct hard link in templates and views (closes #309)
Diffstat (limited to 'papillon/templates/main.html')
-rw-r--r--papillon/templates/main.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/papillon/templates/main.html b/papillon/templates/main.html
index 49088f0..f27a97b 100644
--- a/papillon/templates/main.html
+++ b/papillon/templates/main.html
@@ -3,20 +3,20 @@
{% block content %}
{% if error %}<p class='error'>{{error}}</p>{%endif%}
-<h2><a href='create'>{%trans "Create a poll"%}</a></h2>
+<h2><a href='{% url create%}'>{%trans "Create a poll"%}</a></h2>
<p>{% trans "Create a new sondage for take a decision, find a date for a meeting, etc." %} <a href='create'>{% trans "It's here!" %}</a></p>
{% if polls %}<h2>{%trans "Public polls"%}</h2>{%endif%}
{% for poll in polls %}
<div class='poll-description'>
- <p><a href='poll/{{poll.base_url}}'>{{poll.name}}</a></p>
+ <p><a href='{% url poll poll.base_url%}'>{{poll.name}}</a></p>
<p>{{poll.description|safe}}</p>
</div>
{% endfor %}
{% if categories %}<h2>{%trans "Categories"%}</h2>{% endif %}
{% for category in categories %}
-<h3><a href='category/{{category.id}}'>{{category.name}}</a></h3>
+<h3><a href='{% url category category.id%}'>{{category.name}}</a></h3>
{% endfor %}
{% endblock %}