Ajout d'un lien vers le tag sur le filtre
This commit is contained in:
parent
3c6c1f7963
commit
0234f27b4b
@ -16,7 +16,7 @@
|
||||
{% if filter.is_active %}
|
||||
<strong>Filtres : </strong>
|
||||
{% for t in filter.get_tags %}
|
||||
{{ t | tag_button }}
|
||||
{{ t | tag_button:"true" }}
|
||||
{% endfor %}
|
||||
{% for t in filter.get_exclude_tags %}
|
||||
{{ t | tag_button_strike }}
|
||||
|
@ -34,7 +34,7 @@ def t_button(tag, url, strike=False, category=None):
|
||||
|
||||
@register.filter
|
||||
def tag_button(tag, link=False, strike=False):
|
||||
return t_button(tag, reverse_lazy("view_tag", {"tag": tag}) if link else None, strike)
|
||||
return t_button(tag, reverse_lazy("view_tag", kwargs={"t": tag}) if link else None, strike)
|
||||
|
||||
|
||||
@register.filter
|
||||
|
Loading…
x
Reference in New Issue
Block a user