archive_detail_OLD.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. {% extends "newsroom/base.html" %}
  2. {% block og_title %}{{archive.title}}{% endblock %}
  3. {% block og_type %}Article{% endblock %}
  4. {% block og_url %}{{archive.get_absolute_url}}{% endblock %}
  5. {% block og_description %}{{archive.description}}{% endblock %}
  6. {% block og_image %}{% if archive.lead_image %}{{MEDIA_URL}}{{archive.lead_image}}{% else %}{{MEDIA_URL}}images/headers/pbp_sharing_logo.jpg{% endif %}{% endblock %}
  7. {% block title %}{{archive.title}} | Community News Archives | Penobscot Bay Press{% endblock %}
  8. {% block description %}{{archive.body|truncatewords:60}} {% endblock %}
  9. {% block flag_img_src %}{{MEDIA_URL}}images/headers/archivesround440.gif{% endblock %}
  10. {% block flag_descrip %}Short-term archives, videos, slideshows and special features {% endblock %}
  11. {% block content %}
  12. {% load markup typogrify humanize %}
  13. <td colspan="2" valign="top" bgcolor="white" width="565">
  14. <div style="padding-left:12px; padding-right:12px; padding-top:12px">
  15. <h1 align="center"><em>{{ archive.paper }}</em> Archives<br>
  16. <a class="return" href="{% url nr-archive-index %}">Return to Archives &amp; Multimedia</a><br>
  17. <br>
  18. </SPAN><SPAN Class="dirservheader">
  19. {% if archive.lead_image %}
  20. <img src="{{archive.lead_image.url}}" alt="{{archive}}"/></span></h1>
  21. {% else %}
  22. {{archive.title}}</SPAN></h1>
  23. {% endif %}
  24. <SPAN Class="teaser">{{archive.dateline}}</SPAN><br>
  25. </SPAN><SPAN Class="headline">{{archive|cut:"archive"}}</SPAN>
  26. {{archive.description|markdown|typogrify}}
  27. {% if archive.pdf_documents.all %}
  28. <p><span class="dirservfeatured">Documents</span></p>
  29. <ol>
  30. {% for doc in archive.pdf_documents.all|dictsortreversed:"published_on" %}
  31. <li><a href="{{doc.get_absolute_url}}" class="archive">{{doc.title}}</a><br>
  32. <span class="paper"> {% for e in doc.webedition_set.all %}{% if forloop.first %}<em>{{e.paper}}</em>, {{e.published_on|date:"n/j/y"}}{% endif %}{% endfor %}</span>
  33. </li>
  34. {% endfor %}
  35. </ol>
  36. {% endif %}
  37. {% if archive.movies.all %}
  38. <p><span class="dirservfeatured">Movies</span></p>
  39. <ol>
  40. {% for movie in archive.movies.all %}
  41. <li><a href="{{movie.get_absolute_url}}" class="archive">{{movie.title}}</a></li>
  42. {% endfor %}
  43. </ol>
  44. {% endif %}
  45. {% if archive.slideshows.all %}
  46. <p><span class="dirservfeatured">Slideshows</span></p>
  47. <ol>
  48. {% for ss in archive.slideshows.all %}
  49. <li><a href="{{ss.get_absolute_url}}" class="archive">{{ss.title}}</a></li>
  50. {% endfor %}
  51. </ol>
  52. {% endif %}
  53. {% if archive.galleries.all %}
  54. <p><span class="dirservfeatured">Galleries</span></p>
  55. <ol>
  56. {% for gallery in archive.galleries.all %}
  57. <li><a href="{{gallery.get_absolute_url}}" class="archive">{{gallery.title}}</a></li>
  58. {% endfor %}
  59. </ol>
  60. {% endif %}
  61. {% if archive.stories.all %}
  62. {% if archive.group_by == 'type' %}
  63. <p><span class="dirservfeatured">Articles</span></p>
  64. <ol>
  65. {% for article in archive.stories.all|dictsortreversed:"published_on" %}
  66. <li><a href="{{article.site.domain}}{{article.get_absolute_url}}" class="archive">{{article.hed}}</a><br />
  67. <span class="paper">{% for e in article.paper_editions.all %}{% if forloop.first %}<em>{{e.paper}}</em>, {{e.published_on|date:"n/j/y"}}{% endif %}{% endfor %}</span>
  68. </li>
  69. {% endfor %}
  70. </ol>
  71. {% else %}
  72. {% if archive.group_by == 'dline' %}
  73. {% regroup archive.stories.all|dictsort:"dateline.title" by dateline as dateline_list %}
  74. <p><span class="archivesection">Articles</span></p>
  75. {% for dline in dateline_list %}
  76. <p><span class="teaser">{{dline.grouper}}</span></p>
  77. <ol>
  78. {% for article in dline.list|dictsortreversed:"published_on" %}
  79. <li><a href="{{article.site.domain}}{{article.get_absolute_url}}" class="archive">{{article.hed}}</a><br />
  80. <span class="paper">{% for e in article.webedition_set.all %}{% if forloop.first %}<em>{{e.paper}}</em>, {{e.published_on|date:"n/j/y"}}{% endif %}{% endfor %}</span>
  81. </li>
  82. {% endfor %}
  83. </ol>
  84. {% endfor %}
  85. {% else %}
  86. {% endif %}
  87. {% endif %}
  88. {% endif %}
  89. {% if archive.editorials.all %}
  90. {% if archive.group_by == 'type' %}
  91. <p><span class="dirservfeatured">Opinion</span></p>
  92. <ol>
  93. {% for opinion in archive.editorials.all %}
  94. <li><a href="{{opinion.get_absolute_url}}" class="archive">{{opinion.hed}}</a><br />
  95. <span class="paper"> {% for e in opinion.webedition_set.all %}{% if forloop.first %}<em>{{e.paper}}</em>, {{e.published_on|date:"n/j/y"}}{% endif %}{% endfor %}</span>
  96. {% endfor %}
  97. </ol>
  98. {% else %}
  99. {% if archive.group_by == 'dline' %}
  100. {% regroup archive.editorials.all|dictsort:"dateline.title" by dateline as dateline_list %}
  101. <p><span class="archivesection">Opinion</span></p>
  102. {% for dline in dateline_list %}
  103. <p><span class="teaser">{{dline.grouper}}</span></p>
  104. <ol>
  105. {% for opinion in dline.list|dictsortreversed:"published_on" %}
  106. <li><a href="{{opinion.get_absolute_url}}" class="archive">{{opinion.hed}}</a><br />
  107. <span class="paper"> {% for e in opinion.webedition_set.all %}{% if forloop.first %}<em>{{e.paper}}</em>, {{e.published_on|date:"n/j/y"}}{% endif %}{% endfor %}</span>
  108. {% endfor %}
  109. </ol>
  110. {% endfor %}
  111. {% endif %}
  112. {% endif %}
  113. {% endif %}
  114. </div>
  115. <div style="padding-left:12px; padding-right:12px; clear:both">
  116. <!-- AddThis Button BEGIN -->
  117. <div style="text-align:left; clear:both"><hr size="1">
  118. <p><span class="kicker"><strong>Share this page</strong></span>
  119. <div>
  120. <a class="addthis_button_facebook_like" fb:like:layout="standard"></a>
  121. </div><br>
  122. <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
  123. <a class="addthis_button_twitter" tw:count="none"></a> &nbsp;
  124. <a class="addthis_button_email"></a> &nbsp;
  125. <a class="addthis_button_print"></a> &nbsp;
  126. <a class="addthis_button_pinterest_share" style="cursor:pointer"></a> &nbsp;
  127. <a class="addthis_button_reddit"></a> &nbsp;
  128. <a class="addthis_button_gmail"></a> &nbsp;
  129. <a class="addthis_button_tumblr"></a> &nbsp;
  130. <a class="addthis_button_compact"></a>
  131. </div>
  132. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
  133. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
  134. <hr size="1"></div>
  135. <!-- AddThis Button END -->
  136. <p><a class="return" href="{%url nr-index %}">Return to the Community News home page.</a></p>
  137. </div> </td>
  138. <tr></tr>
  139. {% endblock %}