summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/search.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-09-06 12:50:21 +0200
committerAurélien Bompard <aurelien@bompard.org>2012-09-06 12:50:21 +0200
commit4935c17ef310732a5e339ff5faa6c33bfde298b6 (patch)
tree86840af9568592e437c5c86df7c110a099fdf776 /hyperkitty/templates/search.html
parent9877360a7f81943239d852de14eebf8be7674ad5 (diff)
downloadhyperkitty-4935c17ef310732a5e339ff5faa6c33bfde298b6.tar.gz
hyperkitty-4935c17ef310732a5e339ff5faa6c33bfde298b6.tar.xz
hyperkitty-4935c17ef310732a5e339ff5faa6c33bfde298b6.zip
Fix leftover hardcoded URLs
Diffstat (limited to 'hyperkitty/templates/search.html')
-rw-r--r--hyperkitty/templates/search.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/hyperkitty/templates/search.html b/hyperkitty/templates/search.html
index 1727a79..0fd6e44 100644
--- a/hyperkitty/templates/search.html
+++ b/hyperkitty/templates/search.html
@@ -20,11 +20,12 @@
<div class="thread_content">
{% if email.category_tag %}
<div class="inline-block type type_{{email.category_tag}}">
- <a href="/tag/{{list_address}}/{{email.category_tag}}"> {{email.category}} </a>
+ <a href="{% url search_tag mlist_fqdn=list_address, tag=email.category_tag %}">{{email.category}}</a>
</div>
- {% else %}
+ {% endif %}
+ {% if email.category %}
<div class="inline-block type type_{{email.category|lower}}">
- <a href="{% url search_tag mlist_fqdn=list_address, tag=email.category|lower %}"> {{email.category}} </a>
+ <a href="{% url search_tag mlist_fqdn=list_address, tag=email.category|lower %}">{{email.category}}</a>
</div>
{% endif %}
<div class="inline-block gravatar">
@@ -45,7 +46,7 @@
</li>
{% for tag in email.tags %}
<li>
- <a href="/tag/{{list_address}}/{{tag}}">{{tag}}</a>
+ <a href="{% url search_tag mlist_fqdn=list_address, tag=tag %}">{{tag}}</a>
</li>
{% endfor %}
</ul>