From 6aabb5e8440a59f562da31fafb2abbc03943ae84 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Fri, 10 Aug 2012 04:50:56 +0530 Subject: Issues #18: Fix broken links because URLs were hard coded --- hyperkitty/templates/recent_activities.html | 6 +++--- hyperkitty/templates/thread.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hyperkitty/templates/recent_activities.html b/hyperkitty/templates/recent_activities.html index d6f4516..22f7304 100644 --- a/hyperkitty/templates/recent_activities.html +++ b/hyperkitty/templates/recent_activities.html @@ -85,7 +85,7 @@
#{{forloop.counter}} {{email.subject}} + href="{% url thread threadid=email.thread_id, mlist_fqdn=list_address %}"> {{email.subject}}
    {% if email.category_tag %} @@ -120,7 +120,7 @@
    #{{forloop.counter}} {{email.subject}} + href="{% url thread threadid=email.thread_id, mlist_fqdn=list_address %}"> {{email.subject}}
      {% if email.category_tag %} @@ -197,7 +197,7 @@ diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index abf6747..a1bc38c 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -50,7 +50,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, @@ -73,7 +73,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