photolib/templates/dates.html

30 lines
832 B
HTML
Raw Normal View History

2021-08-14 17:24:02 -07:00
{% set title = "Dates" %}
2018-09-12 21:55:00 -07:00
{% extends "page.html" %}
{% block title %}Photo Dates{% endblock %}
{% block subtitle %}Count per day{% endblock %}
2018-09-11 20:35:04 -07:00
2018-09-12 21:55:00 -07:00
{% block buttons %}
xxx
{% endblock %}
{% block body %}
2018-09-11 20:35:04 -07:00
{% set locals = namespace() %}
<div class="date-feed">
{% set locals.year = "" %}
{% set locals.month = "" %}
2019-11-14 21:28:32 -08:00
{% for count, year, month, day in images %}
{% if year != locals.year %}
{% set locals.year = year %}
<div class="feed-divider year"><h4>{{ year }}</h4></div>
2018-09-11 20:35:04 -07:00
{% endif %}
2019-11-14 21:28:32 -08:00
{% if month != locals.month %}
{% set locals.month = month %}
2018-09-11 20:35:04 -07:00
{% endif %}
2019-11-14 21:28:32 -08:00
<a class="date-item{% if count > 50 %} many{% endif %}" href="/date/{{ year }}-{{ month }}-{{ day }}">{{ month }}-{{ day }} ({{ count }})</a>
2018-09-11 20:35:04 -07:00
{% endfor %}
</div>
2018-09-12 21:55:00 -07:00
{% endblock %}