Add tags to galleries
This commit is contained in:
parent
d74e6e39f9
commit
7d700bea36
9 changed files with 81 additions and 11 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue