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.
 
 
 
 
 
 

58 lines
2.2 KiB

  1. {% extends "page.html" %}
  2. {% block title %}{{ tag.title or tag.name }}{% endblock %}
  3. {% block subtitle %}{{ tag.description }}{% endblock %}
  4. {% block buttons %}
  5. <form action="/tag/{{ tag.uuid }}/op" method="post">
  6. {% if tag.is_album %}<input type="submit" class="secondary-button pure-button" name="op" value="Demote to tag" />{% else %}
  7. <input type="submit" class="secondary-button pure-button" name="op" value="Promote to album" />{% endif %}
  8. <input type="submit" class="secondary-button pure-button" name="op" value="Make all public" />
  9. <input type="submit" class="secondary-button pure-button" name="op" value="Make all private" />
  10. <input type="submit" class="secondary-button pure-button" name="op" value="Delete tag" />
  11. </form>
  12. <a href="/map?zoom=6&a={{ tag.uuid }}"><button class="secondary-button pure-button">Map</button></a>
  13. <a href="/tag/{{ tag.uuid }}/edit"><button class="secondary-button pure-button">Edit</button></a>
  14. {% endblock %}
  15. {% block body %}
  16. {% set locals = namespace() %}
  17. {% set total_pages = (total_items/pgsize)|ceil %}
  18. <div class="photo-feed">
  19. {% set locals.im_date = "" %}
  20. {% for item in images %}
  21. {% set newdate = item.date.strftime("%b %d, %Y") %}
  22. {% if newdate != locals.im_date %}
  23. {% set locals.im_date = newdate %}
  24. <div class="feed-divider year"><h4>{{ locals.im_date }}</h4></div>
  25. {% endif %}
  26. {% include "fragments/feed-photo.html" %}
  27. {% endfor %}
  28. <br style="clear:both" />
  29. <div class="pager">
  30. <h6>Page</h6>
  31. {% if page > 0 %}
  32. <div class="nav-prev">
  33. <a href="{{path}}?page={{ page - 1 }}">Previous</a>
  34. </div>
  35. {% endif %}
  36. <div class="pages">
  37. <ul class="pager">
  38. {% for pgnum in range(0, total_pages) %}
  39. <li{% if pgnum == page %} class="current"{% endif %}>
  40. <a href="{{path}}?page={{ pgnum }}">{{ pgnum }}</a>
  41. </li>
  42. {% endfor %}
  43. </ul>
  44. </div>
  45. {% if page + 1 < total_pages %}
  46. <div class="nav-next">
  47. <a href="{{path}}?page={{ page + 1 }}">Next</a>
  48. </div>
  49. {% endif %}
  50. </div>
  51. </div>
  52. {% endblock %}