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.
 
 
 
 
 
 

56 lines
1.6 KiB

  1. {% extends "page.html" %}
  2. {% block title %}{{ "Photos on {}".format(date.strftime("%b %d, %Y")) }}{% endblock %}
  3. {% block subtitle %}{% endblock %}
  4. {% block buttons %}
  5. <form action="/create_tags" method="post">
  6. <input type="hidden" name="fromdate" value="{{ date.strftime("%Y-%m-%d") }}">
  7. <input type="submit" class="secondary-button pure-button" value="Tag all" />
  8. </form>
  9. {% endblock %}
  10. {% block body %}
  11. {% set locals = namespace() %}
  12. {% set total_pages = (total_sets/pgsize)|ceil %}
  13. <div class="photo-feed">
  14. {% set locals.im_date = "" %}
  15. {% for item in images %}
  16. {% set newdate = item.date.strftime("%b %d, %Y") %}
  17. {% if newdate != locals.im_date %}
  18. {% set locals.im_date = newdate %}
  19. <div class="feed-divider year"><h4>{{ locals.im_date }}</h4></div>
  20. {% endif %}
  21. {% include "fragments/feed-photo.html" %}
  22. {% endfor %}
  23. <br style="clear:both" />
  24. <div class="pager">
  25. <h6>Page</h6>
  26. {% if page > 0 %}
  27. <div class="nav-prev">
  28. <a href="{{path}}?page={{ page - 1 }}">Previous</a>
  29. </div>
  30. {% endif %}
  31. <div class="pages">
  32. <ul class="pager">
  33. {% for pgnum in range(0, total_pages) %}
  34. <li{% if pgnum == page %} class="current"{% endif %}>
  35. <a href="{{path}}?page={{ pgnum }}">{{ pgnum }}</a>
  36. </li>
  37. {% endfor %}
  38. </ul>
  39. </div>
  40. {% if page + 1 < total_pages %}
  41. <div class="nav-next">
  42. <a href="{{path}}?page={{ page + 1 }}">Next</a>
  43. </div>
  44. {% endif %}
  45. </div>
  46. </div>
  47. {% endblock %}