]> git.0d.be Git - panikweb-studioneau.git/commitdiff
display tags
authorFrédéric Péters <fpeters@0d.be>
Sun, 15 May 2022 13:12:21 +0000 (15:12 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 15 May 2022 13:12:21 +0000 (15:12 +0200)
panikweb_studioneau/templates/includes/tags.html

index e73d129dce5cbee50d6e8c965b2052614dd928d2..d20921f7c7b2e89fc66b9d8415b6b01d0fd6541d 100644 (file)
@@ -1,4 +1 @@
-{% comment %}
-{% if not nothing_if_empty or object.tags.exists %}<div class="tags">{% for tag in object.tags.all %}<a href="{% url 'tag-items' slug=tag.slug %}">{{ tag }}</a> {% endfor %}</div>{% endif %}
-{% endcomment %}
-<div class="tags-will-be-here"></div>
+{% if not nothing_if_empty or object.tags.exists %}<div class="{% if object.tags.exists %}tags{% else %}tags-will-be-here{% endif %}">{% for tag in object.tags.all %}<a href="{% url 'tag-items' slug=tag.slug %}">{{ tag }}</a> {% endfor %}</div>{% endif %}