location_page.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {% extends "base.html" %}
  2. {% block content %}
  3. {% include "base/include/header-hero.html" %}
  4. <div class="container bread-detail">
  5. <div class="row">
  6. <div class="col-md-12">
  7. <div class="col-md-7">
  8. <div class="row">
  9. {% if page.introduction %}
  10. <p class="bread-detail__introduction">
  11. {{ page.introduction }}
  12. </p>
  13. {% endif %}
  14. <div class="hidden-md-down">
  15. {{ page.body }}
  16. </div>
  17. </div>
  18. </div>
  19. <div class="col-md-4 col-md-offset-1">
  20. <div class="row">
  21. <div class="bread-detail__meta">
  22. <p class="location__meta-title">Operating Status</p>
  23. {% if page.is_open() %}
  24. This location is currently open.
  25. {% else %}
  26. Sorry, this location is currently closed.
  27. {% endif %}
  28. <p class="location__meta-title">Address</p>
  29. <address>{{ page.address|linebreaks|safe }}</address>
  30. {% if page.operating_hours %}
  31. <p class="location__meta-title">Opening hours</p>
  32. {% for hours in page.operating_hours %}
  33. <time itemprop="openingHours" datetime="{{ hours }}" class="location__time">
  34. <span class="location__day">{{ hours.day }}</span>:
  35. <span class="location__hours">
  36. {% if hours.closed == True %}
  37. Closed
  38. {% else %}
  39. {% if hours.opening_time %}
  40. {{ hours.opening_time }}
  41. {% endif %} -
  42. {% if hours.closing_time %}
  43. {{ hours.closing_time }}
  44. {% endif %}
  45. {% endif %}
  46. </span></time>
  47. {% endfor %}
  48. {% endif %}
  49. </div>
  50. </div>
  51. </div>
  52. <div class="col-md-7">
  53. <div class="row hidden-md-up">
  54. {{ page.body }}
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. {% endblock content %}