document_detail.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {% extends "base.html" %}
  2. {% block og_title %}{{object.title}} | Penobscot Bay Press{% endblock %}
  3. {% block og_url %}{{object.get_absolute_url}}{% endblock %}
  4. {% block og_description %}{{object.description}}{% endblock %}
  5. {% block og_image %}{{MEDIA_URL}}{{object.preview}}{% endblock %}
  6. {% block meta_title %}{{object.title}} | Penobscot Bay Press{% endblock %}
  7. {% block meta_keywords %}{% for tag in object.tags.all %}{{tag}}, {%endfor %}{% endblock %}
  8. {% block meta_description %}{{object.description}}{% endblock %}
  9. {% block rel-img %}{{MEDIA_URL}}{{object.preview}}{% endblock %}
  10. {% block title %}{{object.title}} | Penobscot Bay Press{% endblock %}
  11. {% block content %}
  12. <div style="width:100%; margin:0; padding:0">
  13. <div class="main_content_left">
  14. <div style="padding-left:12px; padding-right:12px; padding-top:12px">
  15. <h2 class="sectionhead_wide">PDF Document</h2>
  16. <p><span class="headline">{{object}}</span></p>
  17. {% load convert_tags %}
  18. </div>
  19. <div style="padding-left:12px; width:756px">
  20. <div style="float:left; clear:both">
  21. <a href="{{object.pdfdocument.file.url}}" target="_blank" alt="PDF download of {{object}}">{% thumbnail object.preview.url "313" %}</a>
  22. </div>
  23. <div style="float:left; padding-top:150px; padding-left:25px; width:250px">
  24. {% load markup typogrify humanize %}
  25. <div class="newcutline">{{object.description|typogrify|markdown}}</div>
  26. {{object.archivesection_set.all}}
  27. {% for s in object.pdfdocument.archivesection_set.all %}
  28. <a href="{{s.get_absolute_url}}" class="return" alt="{{s}}">Return to the related archive.</a><br>
  29. {% endfor %}
  30. <h5>This document is in Adobe PDF format. Click the image to view the file. It should open in a new window in your browser. If you have troubles opening the file, you may need to install Adobe Reader on your computer.<br>
  31. <a href="http://get.adobe.com/reader/">Click here to get Adobe Reader®.</a>
  32. </h5>
  33. </div>
  34. <div style="clear:both"></div>
  35. </div>
  36. </div>
  37. <div class="sidebar_right_media">
  38. <!-- Google AdSense BEGIN -->
  39. <div style="clear:both; text-align:center">
  40. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  41. <!-- Square ad for right of pages -->
  42. <ins class="adsbygoogle"
  43. style="display:inline-block;width:250px;height:250px"
  44. data-ad-client="ca-pub-7616595738812584"
  45. data-ad-slot="7790117357"></ins>
  46. <script>
  47. (adsbygoogle = window.adsbygoogle || []).push({});
  48. </script>
  49. </div>
  50. <!-- Google AdSense END -->
  51. <!-- Google AdSense BEGIN -->
  52. <div style="clear:both; text-align:center">
  53. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  54. <!-- Square ad for right of pages -->
  55. <ins class="adsbygoogle"
  56. style="display:inline-block;width:250px;height:250px"
  57. data-ad-client="ca-pub-7616595738812584"
  58. data-ad-slot="7790117357"></ins>
  59. <script>
  60. (adsbygoogle = window.adsbygoogle || []).push({});
  61. </script>
  62. </div>
  63. <!-- Google AdSense END -->
  64. </div>
  65. </div>
  66. <div style="padding-left:12px; padding-right:12px; padding-bottom:0px">
  67. <!-- AddThis Button BEGIN -->
  68. <div>
  69. <a class="addthis_button_facebook_like" fb:like:layout="standard"></a>
  70. </div>
  71. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
  72. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
  73. <!-- AddThis Button END -->
  74. </div>
  75. <!-- AddThis Smart Layers BEGIN -->
  76. <!-- Go to http://www.addthis.com/get/smart-layers to customize -->
  77. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
  78. <script type="text/javascript">
  79. addthis.layers({
  80. 'theme' : 'transparent',
  81. 'share' : {
  82. 'position' : 'right',
  83. 'services' : 'facebook,twitter,email,print,gmail,tumblr,more',
  84. },
  85. 'follow' : {
  86. 'services' : [
  87. {'service': 'facebook', 'id': 'penobscotbaypress'},
  88. {'service': 'youtube', 'id': 'penobscotbaypress'},
  89. {'service': 'rss', 'id': 'http://https://penobscotbaypress.com/news/feed.xml'}
  90. ]
  91. }
  92. });
  93. </script>
  94. <!-- AddThis Smart Layers END -->
  95. {% endblock %}