puppet node classifier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
916 B

  1. {% extends "page.html" %}
  2. {% block title %}Photo Dates{% endblock %}
  3. {% block subtitle %}Count per day{% endblock %}
  4. {% block buttons %}
  5. xxx
  6. {% endblock %}
  7. {% block body %}
  8. {% set locals = namespace() %}
  9. <div class="date-feed">
  10. {% set locals.year = "" %}
  11. {% set locals.month = "" %}
  12. {% for item, date, count, _, _, _ in images %}
  13. {% if item.date.year != locals.year %}
  14. {% set locals.year = item.date.year %}
  15. <div class="feed-divider year"><h4>{{ item.date.year }}</h4></div>
  16. {% endif %}
  17. {% if item.date.month != locals.month %}
  18. {% set locals.month = item.date.month %}
  19. <div class="feed-divider month"><h4>{{ item.date.strftime("%B") }}</h4></div>
  20. {% endif %}
  21. <a class="date-item{% if count > 50 %} many{% endif %}" href="/date/{{ date }}">{{ date }} ({{ count }})</a>
  22. {% endfor %}
  23. </div>
  24. {% endblock %}