{% extends "photologue/root.html" %}
{% load url from future %}

{% block title %}Photos for {{ month|date:"F Y" }}{% endblock %}

{% block content %}

<h1>Photos for {{ month|date:"F Y" }}</h1>

{% if object_list %}
    {% for photo in object_list %}
    <div class="gallery-photo">
        <a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
    </div>
    {% endfor %}
{% else %}
<p>No photos were found.</p>
{% endif %}
<p><a href="{% url 'photologue:photo-list' %}">View all photographs</a></p>

{% endblock %}
