{% extends "photologue/root.html" %}
{% load i18n %}

{% block title %}{{ gallery.title }}{% endblock %}

{% block content %}

<div class="row">
    <div class="col-lg-12">
        <h1>{{ gallery.title }}</h1>
        <p class="text-muted small">{% trans "Published" %} {{ gallery.date_added }}</p>
        {% if gallery.description %}{{ gallery.description|safe }}{% endif %}
        <div class="gallery-list">
            {% for photo in gallery.public %}
            <a href="{{ photo.get_absolute_url }}">
                <img src="{{ photo.get_thumbnail_url }}" class="img-thumbnail" alt="{{ photo.title }}">
            </a>
            {% endfor %}
        </div>
        <div>
            <a href="{% url 'photologue:gallery-list' %}" class="btn btn-outline-secondary">{% trans "View all galleries" %}</a>
        </div>
    </div>
</div>

{% endblock %}
