From 11d4a50b856ef2735452576d3ee431051f6b54a9 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Fri, 10 Aug 2012 04:42:19 +0530 Subject: Issues #18: Fix broken links because URLs were hard coded --- hyperkitty/templates/base.html | 4 +--- hyperkitty/templates/message.html | 4 ++-- 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 %}
  • - {{list_address}} + {{list_address}}
  • {% endif %} @@ -52,8 +52,6 @@ - -
    {% block content %} {% endblock %}
    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, -- cgit