Add tags to galleries

This commit is contained in:
Alexandre Iooss 2021-09-23 10:35:37 +02:00
parent d74e6e39f9
commit 7d700bea36
9 changed files with 81 additions and 11 deletions

View file

@ -23,6 +23,13 @@
{% block content %}
<h1>{{ gallery.title }}</h1>
<p class="text-muted small">{% trans "Published" %} {{ gallery.date_added }}</p>
{% 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>
{% endfor %}
</p>
{% endif %}
{% if gallery.description %}<p>{{ gallery.description|safe }}</p>{% endif %}
<div class="gallery-list mb-3" id="lightgallery">
{% for photo in gallery.public %}