index.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div style="width:100%; margin:0; padding:0">
  4. <div class="main_content_left">
  5. <div style="padding-left:12px; padding-right:12px; padding-top:12px">
  6. <h2 class="sectionhead_wide">Compass Almanac</h2>
  7. </div>
  8. <div style="border:0px; margin:0px; padding-left: 8px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; text-align:center">
  9. {% load almanac_tags %}
  10. {% current_tide_state isle-au-haut-stonington-dock as tide %}
  11. <p class="dirservindexhead">Tides</p>
  12. <p class="dirservfeatured">Currently the tide in Stonington is {{tide.status}}</p>
  13. <p>It will change at {{tide.time|time:"TIME_FORMAT"}}</p>
  14. <p><a href="{% url al-tide-index %}">Click here to view the complete tide information.</a></p>
  15. <p class="dirservindexhead">Weather</p>
  16. <p class="divservfeatured">
  17. {% for cam in webcams %}
  18. <dl style="{% if forloop.first %}margin-left:8em;{%endif%}display:inline; float:left; clear:both:">
  19. <dt><a href="{% if forloop.first %}http://islandadvantages.com/{% else %}http://weeklypacket.com/{% endif %}{{cam.get_absolute_url}}">{{cam}}</dt>
  20. <dd style="margin-left:0; padding-top:0.5em;"><img src="{{cam.thumb_file}}" alt="{{cam}}" name="myCam" width="120" border="0"></a></dd>
  21. </dl>
  22. {% if forloop.first %}<p style="display:inline; float:left; padding:1em; padding-top:3.5em;"><span class="bullet">&bull;</span></p>{% endif %}
  23. {% endfor %}
  24. </p>
  25. {% for w in town_weather %}
  26. <p class="dirservfeatured" style="clear:both;">The weather in <b>{{w.location.city}}</b> is {{w.condition.text}} and {{w.condition.temp}}&deg;F</p>
  27. {% for f in w.forecasts %}
  28. <p><strong>For {{f.date}}</strong> &mdash; High: {{f.high}} / Low: {{f.low}} and {{f.text}}</p>
  29. {% endfor %}
  30. {% endfor %}
  31. <hr size="1">
  32. </div>
  33. <div style="border:0px; margin:0px; padding-left: 8px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; text-align:center">
  34. <p><em>Tides and astronomical data provided by <a href="http://www.noaa.gov/">NOAA</a><br>
  35. Weather information provided by <a href="http://weather.yahoo.com/">Yahoo Weather</a></em></p>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="sidebar_right_media">
  40. <!-- Google AdSense BEGIN -->
  41. <div style="clear:both; text-align:center">
  42. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  43. <!-- Square ad for right of pages -->
  44. <ins class="adsbygoogle"
  45. style="display:inline-block;width:250px;height:250px"
  46. data-ad-client="ca-pub-7616595738812584"
  47. data-ad-slot="7790117357"></ins>
  48. <script>
  49. (adsbygoogle = window.adsbygoogle || []).push({});
  50. </script>
  51. </div>
  52. <!-- Google AdSense END -->
  53. <br>
  54. <!-- Google AdSense BEGIN -->
  55. <div style="clear:both; text-align:center">
  56. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  57. <!-- Square ad for right of pages -->
  58. <ins class="adsbygoogle"
  59. style="display:inline-block;width:250px;height:250px"
  60. data-ad-client="ca-pub-7616595738812584"
  61. data-ad-slot="7790117357"></ins>
  62. <script>
  63. (adsbygoogle = window.adsbygoogle || []).push({});
  64. </script>
  65. </div>
  66. <!-- Google AdSense END -->
  67. </div>
  68. <!-- AddThis Smart Layers BEGIN -->
  69. <!-- Go to http://www.addthis.com/get/smart-layers to customize -->
  70. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
  71. <script type="text/javascript">
  72. addthis.layers({
  73. 'theme' : 'transparent',
  74. 'share' : {
  75. 'position' : 'right',
  76. 'services' : 'facebook,twitter,email,print,gmail,tumblr,more',
  77. }
  78. });
  79. </script>
  80. <!-- AddThis Smart Layers END -->
  81. {% endblock %}k