Add detail page for tags

This commit is contained in:
Alexandre Iooss 2021-09-23 11:05:04 +02:00
parent 7d700bea36
commit d59fb154b6
6 changed files with 48 additions and 2 deletions

View file

@ -26,7 +26,7 @@
{% if gallery.extended.tags.all %}
<p class="text-muted">
Tags : {% for tag in gallery.extended.tags.all %}
<span class="badge rounded-pill bg-dark">{{ tag }}</span>
<a class="badge rounded-pill bg-dark text-decoration-none" href="{% url 'tag-detail' tag %}">{{ tag }}</a>
{% endfor %}
</p>
{% endif %}