movie_index.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {% extends "darkroom/base.html" %}
  2. {% block title %}Video archive | Penobscot Bay Press{% 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. <h1><img src="{{MEDIA_URL}}images/archives/archives_video_header.gif" alt="Video Archives" width="542" height="45"></h1>
  11. <h2 align=center ><a class="return" style="align:center;" href="#slideshows">Skip to our slideshows</a></h2>
  12. <h2 align=center ><a class="return" style="align:center;" href="{% url nr-archive-index %}">Return to Archives &amp; Multimedia</a></h2>
  13. </div>
  14. <p>Subscribe to our YouTube Channel to see our archived videos.
  15. <script src="https://apis.google.com/js/plusone.js"></script>
  16. <div class="g-ytsubscribe" data-channel="PenobscotBayPress" data-layout="full"></div> <div class="movie" style="padding-left:12px">
  17. </p>
  18. <object width="640" height="360">
  19. <param name="movie" value="https://www.youtube.com/v/videoseries?listType=user_uploads&list=PenobscotBayPress&version=3"></param>
  20. <param name="allowFullScreen" value="true"></param>
  21. <param name="allowScriptAccess" value="always"></param>
  22. <embed src="https://www.youtube.com/v/videoseries?listType=user_uploads&list=PenobscotBayPress&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></embed>
  23. </object></div>
  24. {% if movies %}
  25. {% load convert_tags typogrify markup %}
  26. {% for movie in movies %}
  27. {% if forloop.first %}
  28. <div class="movie" style="padding-left:12px">
  29. <h3><a href="{{movie.get_absolute_url}}" alt="{{movie}}" >{{movie}}</a></h3>
  30. {% if movie.preview %}{%thumbnail movie.preview.url "x300" %}{% endif %}
  31. {% if movie.photographer %}<h4>Video by {{movie.photographer}}</h4>{% endif %}
  32. {% if movie.description %}<p>{{movie.description|typogrify|markdown}}</p>{% endif %}
  33. {% if movie.story_set.all %}
  34. <p>
  35. {% for s in movie.story_set.all %}
  36. <a href="{{s.get_absolute_url}}" alt="{{s}}">Related story</a>
  37. {% endfor %}
  38. </p>
  39. {% endif %}
  40. </div>
  41. <hr />
  42. {% endif %}
  43. {% endfor %}
  44. {% else %}
  45. <p>Sorry, we don't have any movies at this time. We are currently reorganizing our website and will have all movies restored shortly. Thank you for your paitence.</p>
  46. {% endif %}
  47. {% if slideshows %}
  48. <h1 class="slideshows" id="slideshows">Slideshows</h1>
  49. {% load convert_tags typogrify markup %}
  50. {% for slideshow in slideshows %}
  51. <div class="movie" style="padding-left:12px">
  52. <h3><a href="{{slideshow.get_absolute_url}}" alt="{{slideshow}}" >{{slideshow}}</a></h3>
  53. {% if slideshow.preview %}{%thumbnail slideshow.preview.url "x300" %}{% endif %}
  54. {% if slideshow.photographer %}<h4>Video by {{slideshow.photographer}}</h4>{% endif %}
  55. {% if slideshow.story_set.all %}
  56. <p>
  57. {% for s in slideshow.story_set.all %}
  58. <a href="{{s.get_absolute_url}}" alt="{{s}}">Related story</a>
  59. {% endfor %}
  60. </p>
  61. {% endif %}
  62. </div>
  63. {% endfor %}
  64. {% endif %}
  65. </div>
  66. </td>
  67. </table>
  68. </td>
  69. {% endblock %}