Move custom photologue to seperate app

This commit is contained in:
Alexandre Iooss 2021-09-23 10:17:01 +02:00
parent 0edbc79023
commit 59b95898f8
13 changed files with 59 additions and 13 deletions

View file

@ -1,13 +0,0 @@
{% load i18n %}
<div class="card text-white bg-dark">
{% for photo in gallery.sample %}
<img src="{{ photo.get_thumbnail_url }}" class="card-img-top" alt="{{ photo.title }}">
{% 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>
{% 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>
</div>