A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
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.
 
 
 
 
 

36 lines
1.1 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}{{ album }}{% endblock %}
  3. {% block content %}
  4. <h1>Album: {{ album }}</h1>
  5. <ul class="photo-grid">
  6. {% for photo in photos %}
  7. <li class="portrait">
  8. <div class="dummy"></div>
  9. <div class="photo-grid-item">
  10. <a href="{{ url_for('photo.view_photo', key=photo['key']) }}">
  11. <img src="{{ app['photo_url'] }}/{{ photo['data']['thumb'] }}" width="100%" height="100%">
  12. <span class="name">{{ photo["data"]["caption"] }}</span>
  13. </a>
  14. </div>
  15. </li>
  16. {% endfor %}
  17. </ul>
  18. <div class="clear"></div>
  19. {% if session["login"] %}
  20. <h1>Administrative Options</h1>
  21. <ul>
  22. <li><a href="{{ url_for('photo.upload') }}">Upload a Photo</a></li>
  23. {% if photos|length > 0 %}
  24. <li><a href="{{ url_for('photo.arrange_photos', album=album) }}">Rearrange Photos</a></li>
  25. <li><a href="{{ url_for('photo.delete_album', album=album) }}">Delete Album</a></li>
  26. {% endif %}
  27. </ul>
  28. {% endif %}
  29. {% endblock %}