30 lines
832 B
HTML
30 lines
832 B
HTML
{% set title = "Dates" %}
|
|
{% extends "page.html" %}
|
|
{% block title %}Photo Dates{% endblock %}
|
|
{% block subtitle %}Count per day{% endblock %}
|
|
|
|
{% block buttons %}
|
|
xxx
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
{% set locals = namespace() %}
|
|
|
|
<div class="date-feed">
|
|
{% set locals.year = "" %}
|
|
{% set locals.month = "" %}
|
|
{% for count, year, month, day in images %}
|
|
{% if year != locals.year %}
|
|
{% set locals.year = year %}
|
|
<div class="feed-divider year"><h4>{{ year }}</h4></div>
|
|
{% endif %}
|
|
{% if month != locals.month %}
|
|
{% set locals.month = month %}
|
|
{% endif %}
|
|
<a class="date-item{% if count > 50 %} many{% endif %}" href="/date/{{ year }}-{{ month }}-{{ day }}">{{ month }}-{{ day }} ({{ count }})</a>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% endblock %}
|