JS-P04/app/templates/album/index.html
Kacper Donat 3a649df550 Whole app
2020-06-08 22:46:01 +02:00

21 lines
744 B
HTML

{% extends 'base.html' %}
{% block breadcrumbs %}
<li class="breadcrumb-item">Galeria Zdjęć</li>
{% endblock breadcrumbs %}
{% block content %}
<ul class="gallery">
{% for album in albums %}
<li class="gallery__entry album">
<img src="{{ album.photo_set.first.thumbnail.url }}" class="album__thumbnail" />
<div class="album__header">
<a class="album__title" href="{% url 'album' album.id %}">{{ album.title }}</a>
</div>
</li>
{% endfor %}
<li class="gallery__entry gallery__entry--action">
<a href="{% url 'add_album' %}" class="stretched-link">dodaj +</a>
</li>
</ul>
{% endblock content %}