gallery_archive.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% extends "darkroom/base.html" %}
  2. {% block title %}{{object.title}} | Gallery | Penobscot Bay Press{% endblock %}
  3. {% block meta_keywords %}{% for tag in object.tags.all %}{{tag}}, {%endfor %}{% endblock %}
  4. {% block meta_title %}{{object.title}} | {% for e in object.edition_set.all %}{%if forloop.first %}{% if e.paper == "Compass" %}| {{e.paper}}{%endif%}{%endif%}{%endfor%} The Weekly Packet{% endblock %}
  5. {% block meta_description %}{{object.description}}{% endblock %}
  6. {% block rel-img %}{{object.get_display_url}}{% endblock %}
  7. {% block description %}{{object.description}}{% endblock %}
  8. {% block content %}
  9. <td align="center" valign="top" bgcolor="white" width="565" colspan="2">
  10. <table width="444" border="0" cellspacing="8" cellpadding="0">
  11. <td colspan="2" valign="top" bgcolor="white" width="565">
  12. <div style="padding-left:12px; padding-right:12px; padding-top:12px; background:white; ">
  13. <img src="http://www.penobscotbaypress.com/images/headers/newsfeature542.gif" alt="News Feature" height="32" width="542" border="0"><br>
  14. <h2 align=center ><a class="return" style="align:center;" href="{% url dr-index %}">Return to Archives &amp; Multimedia</a></h2>
  15. <h2>Photo galleries</h2>
  16. </div>
  17. {% for gallery in latest %}
  18. <div class="gallery" style="padding-left:12px">
  19. <h4><a href="{{gallery.get_absolute_url}}" alt="{{gallery}}" >{{gallery}}</a><br>
  20. {% if gallery.photographer %}Photos by {{gallery.photographer}}{% endif %}</h4>
  21. {% load markup typogrify humanize %}
  22. <p>
  23. {% for p in gallery.photos.all %}
  24. {% if forloop.last %}
  25. <img style="padding-right:10px; float:left" src="{{p.get_thumbnail_url}}" alt="{{p}}" />
  26. {% endif %}
  27. {% endfor %}
  28. {{gallery.description|typogrify|markdown}}
  29. </p>
  30. {% if gallery.story_set.all %}
  31. <p>
  32. {% for s in gallery.story_set.all %}
  33. <a href="{{s.get_absolute_url}}" alt="{{s}}">Related story</a><br />
  34. {% endfor %}
  35. </p>
  36. {% endif %}
  37. </div>
  38. <br />
  39. {% endfor %}
  40. <p><a class="return" href="{% url nr-index %}">Return to the Penobscot Bay Press home page.</a></p>
  41. </td>
  42. </table>
  43. </td>
  44. {% endblock %}