Do not show time in gallery sample

This commit is contained in:
Alexandre Iooss 2021-10-12 17:49:13 +02:00
parent 99e3370d39
commit 0dd9d7cb37

View file

@ -6,7 +6,7 @@
{% endfor %}
<div class="card-body">
<h5 class="card-title">{{ gallery.title }}</h5>
<p class="card-text text-muted small mb-0">{% trans "Published" %} {{ gallery.date_added }}</p>
<p class="card-text text-muted small mb-0">{% trans "Published" %} {{ gallery.date_added|date }}</p>
{% if gallery.description %}<p class="card-text small mb-0">{{ gallery.description|safe }}</p>{% endif %}
<a href="{{ gallery.get_absolute_url }}" class="stretched-link"></a>
</div>