diff options
-rw-r--r-- | hyperkitty/templates/recent_activities.html | 6 | ||||
-rw-r--r-- | 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 @@ <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, |