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.
 
 
 
 
 
 

27 lines
749 B

  1. {% extends "page.html" %}
  2. {% block title %}Photos by date{% endblock %}
  3. {% block subtitle %}By date, descending{% endblock %}
  4. {% block buttons %}{% endblock %}
  5. {% block body %}
  6. {% set locals = namespace() %}
  7. {% set total_pages = (total_sets/pgsize)|ceil %}
  8. <div class="photo-feed">
  9. {% set locals.im_date = "" %}
  10. {% for item in images %}
  11. {% set newdate = item.date.strftime("%b %d, %Y") %}
  12. {% if newdate != locals.im_date %}
  13. {% set locals.im_date = newdate %}
  14. <div class="feed-divider year"><h4>{{ locals.im_date }}</h4></div>
  15. {% endif %}
  16. {% include "fragments/feed-photo.html" %}
  17. {% endfor %}
  18. <br style="clear:both" />
  19. {% include "pager.html" %}
  20. </div>
  21. {% endblock %}