seasonal_guide_box.html 1.6 KB

123456789101112131415161718192021222324
  1. <td class="sg-datebox {% ifnotequal day.day.moonphase None %}sg-moonphase{{day.day.moonphase}}{% endifnotequal %}">
  2. <h2 class="sg-dateline">{{day.day.date|date:"D"}} &nbsp;&nbsp;<span class="sg-date">{{day.day.date|date:"n/j"}}</span></h2>
  3. {% ifnotequal day.day.moonphase None %}
  4. <h3 class="sg-moonphase sg-moonphase{{day.day.moonphase}}a"><span class="sg-moonphase-text">{{day.day.get_moonphase_display}}</span></h3>
  5. <p>{{day.day.get_moonphase_display}}</p>
  6. <p> {{day.day.moonphase_time|time:"P"}}</p>
  7. {% endifnotequal %}
  8. </td>
  9. <td class="sg-setbox">
  10. <table class="sg-list">
  11. <tr><td>Moonset</td><td class="right">{{day.day.moonset|time:"H:i"}}</td></tr>
  12. <tr><td>Sunrise</td><td class="right">{{day.day.sunrise|time:"H:i"}}</td></tr>
  13. <tr><td>Moonrise</td><td class="right">{{day.day.moonrise|time:"H:i"}}</td></tr>
  14. <tr><td>Sunset</td><td class="right">{{day.day.sunset|time:"H:i"}}</td></tr>
  15. </table>
  16. </td>
  17. <td class="sg-tidebox">
  18. <table class="sg-list">
  19. <tr><td>{{day.tide_1.get_state_display}}</td><td class="time right">{{day.tide_1.time|time:"H:i"}}</td><td class="right">{{day.tide_1.level|floatformat}}'</td></tr>
  20. <tr><td>{{day.tide_2.get_state_display}}</td><td class="time right">{{day.tide_2.time|time:"H:i"}}</td><td class="right">{{day.tide_2.level|floatformat}}'</td></tr>
  21. <tr><td>{{day.tide_3.get_state_display}}</td><td class="time right">{{day.tide_3.time|time:"H:i"}}</td><td class="right">{{day.tide_3.level|floatformat}}'</td></tr>
  22. <tr><td>{{day.tide_4.get_state_display}}</td><td class="time right">{{day.tide_4.time|time:"H:i"}}</td><td class="right">{{day.tide_4.level|floatformat}}'</td></tr>
  23. </table>
  24. </td>