Add accessibility on gallery_sample

This commit is contained in:
Alexandre Iooss 2022-12-26 10:47:24 +01:00
parent b3bc9651e4
commit 66303d1406

View file

@ -13,6 +13,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
<h5 class="card-title">{{ gallery.title }}</h5>
{% if gallery.date_start %}<p class="card-text text-muted small mb-0">{{ gallery.date_start }}{% if gallery.date_end and gallery.date_end != gallery.date_start %} - {{ gallery.date_end }}{% endif %}</p>{% endif %}
{% if request.user.is_staff and gallery.photo_private_count %}<p class="card-text text-danger small mb-0">{{ gallery.photo_private_count }} photos censurées</p>{% endif %}
<a href="{{ gallery.get_absolute_url }}" class="stretched-link"></a>
<a href="{{ gallery.get_absolute_url }}" class="stretched-link" aria-label="{{ gallery.title }}"></a>
</div>
</div>