index.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {% extends "base.html" %}
  2. {% block title %}{{object.title}}{% endblock %}
  3. {% block rel-img %}{{object.get_display_url}}{% endblock %}
  4. {% block description %}{{object.description}}{% endblock %}
  5. {% block content %}
  6. <td align="center" valign="top" bgcolor="white" width="565" colspan="2">
  7. <table width="444" border="0" cellspacing="8" cellpadding="0">
  8. <td colspan="2" valign="top" bgcolor="white" width="565">
  9. <div style="padding-left:12px; padding-right:12px; padding-top:12px; background:white; ">
  10. <img src="http://www.penobscotbaypress.com/images/headers/newsfeature542.gif" alt="News Feature" height="32" width="542" border="0"><br>
  11. <div class="column-1" style="width:60%; float:left; ">
  12. {% if galleries %}
  13. <h3>Photo galleries</h3>
  14. {% for gallery in galleries %}
  15. <div class="gallery" style="padding-left:12px">
  16. <span class="paper"><em>{{gallery.published_on|date:"M j, Y"}}</em></span>
  17. <h3><a href="{{gallery.get_absolute_url}}" alt="{{gallery}}" >{{gallery}}</a></h3>
  18. <h4>{% if gallery.photographer %}Photos by {{gallery.photographer}}{% endif %}</h4>
  19. {% load markup typogrify humanize %}
  20. <p>
  21. {% for p in gallery.photos.all %}
  22. {% if forloop.last %}
  23. <img style="padding-right:10px; float:left" src="{{p.get_thumbnail_url}}" alt="{{p}}" />
  24. {% endif %}
  25. {% endfor %}
  26. {{gallery.description|typogrify|markdown|truncatewords:25}}
  27. </p>
  28. {% if gallery.story_set.all %}
  29. <p>
  30. {% for s in gallery.story_set.all %}
  31. <a href="{{s.get_absolute_url}}" alt="{{s}}">Related story</a><br />
  32. {% endfor %}
  33. </p>
  34. {% endif %}
  35. </div>
  36. <br />
  37. {% endfor %}
  38. <p><em><a href="{% url dr-gallery-index %}" alt="Galleries">More galleries</a></em></p>
  39. {% endif %}
  40. </div>
  41. <div class="column-2" style="width:35%; float:left; padding-left:0.7em; margin-left:0.7em; border-left:1px solid #aaa; ">
  42. {% if movies %}
  43. {% load convert_tags %}
  44. <h3>Movies</h3>
  45. {% for movie in movies %}
  46. <div class="gallery" style="padding-left:12px">
  47. <span class="paper"><em>{{movie.published_on|date:"M j, Y"}}</em></span>
  48. <h3><a href="{{movie.get_absolute_url}}" alt="{{movie}}" >{{movie}}</a></h3>
  49. {% if movie.photographer %}<h4>Video by {{movie.photographer}}</h4>{% endif %}
  50. {% load markup typogrify humanize %}
  51. <p>
  52. {% thumbnail movie.preview.url "200" %}
  53. {{movie.description|typogrify|markdown|truncatewords:40}}
  54. </p>
  55. {% if movie.story_set.all %}
  56. <p>
  57. {% for s in movie.story_set.all %}
  58. <a href="{{s.get_absolute_url}}" alt="{{s}}">Related story</a><br />
  59. {% endfor %}
  60. </p>
  61. {% endif %}
  62. </div>
  63. {% endfor %}
  64. <p><em><a href="{% url dr-movie-index %}" alt="Movies">More movies</a></em></p>
  65. <br />
  66. {% endif %}
  67. {% if photos %}
  68. <h3>Recent photos</h3>
  69. {% for photo in photos %}
  70. <div class="gallery" style="padding-left:12px">
  71. <span class="paper"><em>{{photo.published_on|date:"M j, Y"}}</em></span>
  72. <h3><a href="{{photo.get_absolute_url}}" alt="{{photo}}" >{{photo}}</a></h3>
  73. <h4>{% if photo.photographer %}Photos by {{photo.photographer}}{% endif %}</h4>
  74. {% load markup typogrify humanize %}
  75. <p>
  76. <img style="padding-right:10px; float:left" src="{{photo.get_thumbnail_url}}" alt="{{photo}}" />
  77. </p>
  78. {% if photo.story_set.all %}
  79. <p>
  80. {% for s in photo.story_set.all %}
  81. <a href="{{s.get_absolute_url}}" alt="{{s}}">Related story</a><br />
  82. {% endfor %}
  83. </p>
  84. {% endif %}
  85. </div>
  86. <br />
  87. {% endfor %}
  88. <p><em><a href="{% url dr-photo-archive %}" alt="Photos">More photos</a></em></p>
  89. {% endif %}
  90. </div>
  91. <p style="clear:both; margin-top:1em; "><a class="return" href="{% url nr-index %}">Return to the Penobscot Bay Press home page.</a></p>
  92. </div>
  93. </td>
  94. </table>
  95. </td>
  96. {% endblock %}