summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-08-10 04:42:19 +0530
committerAamir Khan <syst3m.w0rm@gmail.com>2012-08-10 04:42:19 +0530
commit11d4a50b856ef2735452576d3ee431051f6b54a9 (patch)
treedddc4dde0f3701e7f54b35b143ce0ac70dc71218
parent7b8195ee07cc0d9b7076040745424032d5b906b7 (diff)
downloadhyperkitty-11d4a50b856ef2735452576d3ee431051f6b54a9.tar.gz
hyperkitty-11d4a50b856ef2735452576d3ee431051f6b54a9.tar.xz
hyperkitty-11d4a50b856ef2735452576d3ee431051f6b54a9.zip
Issues #18: Fix broken links because URLs were hard coded
-rw-r--r--hyperkitty/templates/base.html4
-rw-r--r--hyperkitty/templates/message.html4
2 files changed, 3 insertions, 5 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html
index 0ae6d4c..5675db7 100644
--- a/hyperkitty/templates/base.html
+++ b/hyperkitty/templates/base.html
@@ -40,7 +40,7 @@
{% if list_address %}
<li id="list_name">
- <a href="/list/{{list_address}}">{{list_address}}</a>
+ <a href="{% url list_overview mlist_fqdn=list_address %}">{{list_address}}</a>
</li>
{% endif %}
@@ -52,8 +52,6 @@
</div>
-
-
<div class="container">
{% block content %} {% endblock %}
</div>
diff --git a/hyperkitty/templates/message.html b/hyperkitty/templates/message.html
index 592e85d..5fd81a8 100644
--- a/hyperkitty/templates/message.html
+++ b/hyperkitty/templates/message.html
@@ -22,7 +22,7 @@
{% if user.is_authenticated %}
$.ajax({
type : "POST",
- url : '/vote/{{list_address}}/',
+ url : "{% url message_vote mlist_fqdn=list_address %}",
data : {
vote : 1,
messageid : message_id,
@@ -45,7 +45,7 @@
{% if user.is_authenticated %}
$.ajax({
type : "POST",
- url : '/vote/{{list_address}}/',
+ url : '{% url message_vote mlist_fqdn=list_address %}',
data : {
vote : -1,
messageid : message_id,