summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-08-10 04:50:56 +0530
committerAamir Khan <syst3m.w0rm@gmail.com>2012-08-10 04:50:56 +0530
commit6aabb5e8440a59f562da31fafb2abbc03943ae84 (patch)
tree37b714c5036c672fb44c4b5ecbc29bf3cac2d58c
parent24bdfc8bc396078d7143857c6ac5a42f6939a852 (diff)
downloadhyperkitty-6aabb5e8440a59f562da31fafb2abbc03943ae84.tar.gz
hyperkitty-6aabb5e8440a59f562da31fafb2abbc03943ae84.tar.xz
hyperkitty-6aabb5e8440a59f562da31fafb2abbc03943ae84.zip
Issues #18: Fix broken links because URLs were hard coded
-rw-r--r--hyperkitty/templates/recent_activities.html6
-rw-r--r--hyperkitty/templates/thread.html4
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 @@
<div class="thread">
<span class="thread_id">#{{forloop.counter}}</span>
<span class="thread_title"> <a name="{{email.thread_id}}"
- href="/thread/{{list_address}}/{{email.thread_id}}"> {{email.subject}} </a> </span>
+ href="{% url thread threadid=email.thread_id, mlist_fqdn=list_address %}"> {{email.subject}} </a> </span>
<div class="thread_stats">
<ul class="inline-block">
{% if email.category_tag %}
@@ -120,7 +120,7 @@
<div class="thread">
<span class="thread_id">#{{forloop.counter}}</span>
<span class="thread_title"> <a name="{{email.thread_id}}"
- href="/thread/{{list_address}}/{{email.thread_id}}"> {{email.subject}} </a> </span>
+ href="{% url thread threadid=email.thread_id, mlist_fqdn=list_address %}"> {{email.subject}} </a> </span>
<div class="thread_stats">
<ul class="inline-block">
{% if email.category_tag %}
@@ -197,7 +197,7 @@
<ul>
{% for ar_month in value %}
<li>
- <a href="/archives/{{list_address}}/{{key}}/{{ar_month}}"> {{ ar_month|tomonth }} </a>
+ <a href="{% url archives_with_month year=key, mlist_fqdn=list_address, month=ar_month %}"> {{ ar_month|tomonth }} </a>
</li>
{% endfor %}
</ul>
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,