Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 KB | None | 0 0
  1. <!-- {% if page.headline.size > 0 %}
  2. <h2 class="mb-3">{{ page.headline }}</h2>
  3. {% endif %}
  4.  
  5. <div id="content">
  6. {% if page.calendar.content.size > 0 %}
  7. <div id="intro" class="intro">
  8. {{ page.calendar.content }}
  9. </div>
  10. {% endif %}
  11.  
  12. {% if page.calendar.is_proximity? %}
  13. <div class="mb-4">
  14. <div class="card">
  15. <h4 class="card-header">Find {{ page.calendar.event_name | pluralize | downcase }} near you</h4>
  16. <div class="card-body">
  17. {% form_for address_change %}
  18. <div class="form-wrap">
  19. <div class="form">
  20.  
  21. <div class="form-group">
  22. {% text_field "submitted_address", class:"form-control text", placeholder:"Address or postal code" %}
  23. </div>
  24.  
  25. <div class="form-group distance">
  26. <span class="mr-2 within">within</span>
  27. <span class="radio-inline">{{ page.calendar.distance_radio_buttons }}</span>
  28. </div>
  29.  
  30. <div>
  31. {% submit_tag "Search", class:"btn btn-primary submit-button" %}
  32. {% if page.calendar.allow_user_submitted? %}
  33. or <a href="{{ page.calendar.new_event_url }}">Host your own</a>
  34. {% endif %}
  35. <div class="form-submit"></div>
  36. </div>
  37.  
  38. {% if page.calendar.events_upcoming_nearby_count > 0 %}
  39. {% if page.calendar.events_upcoming_nearby_count > 1 %}
  40. <div class="my-2">
  41. <strong>Found {{ page.calendar.events_upcoming_nearby_count }} {{ page.calendar.event_name | pluralize | downcase }}.</strong>
  42. </div>
  43. {% endif %}
  44. <div class="my-2 map-wrap">
  45. <div class="map">{{ page.calendar.events_upcoming_nearby_map }}</div>
  46. </div>
  47. {% else %}
  48. <div class="my-2">
  49. <strong>No {{ page.calendar.event_name | pluralize | downcase }} found nearby,</strong> try widening your search
  50. {% if page.calendar.allow_user_submitted? %}
  51. or maybe <a href="{{ page.calendar.new_event_url }}">host your own</a>?
  52. {% endif %}
  53. </div>
  54. {% if page.calendar.events_upcoming.size > 0 %}
  55. <div class="my-2 map-wrap">
  56. <div class="mb-2 showing-all">Showing all {{ page.calendar.events_upcoming_count }} {{ page.calendar.event_name | pluralize | downcase }} instead.</div>
  57. {{ page.calendar.events_upcoming_map }}
  58. </div>
  59. {% endif %}
  60. {% endif %}
  61. </div>
  62. </div>
  63. {% endform_for %}
  64. </div>
  65. </div>
  66. </div>
  67.  
  68. {% if page.calendar.events_upcoming_nearby.size > 0 %}
  69. <ul class="list-unstyled mb-4">
  70. {% for event in page.calendar.events_upcoming_nearby %}
  71. <li class="{% unless forloop.last == true %}mb-4 pb-4 border-bottom{% endunless %}">
  72. {% include "event" %}
  73. </li>
  74. {% endfor %}
  75. </ul>
  76.  
  77. {{ page.calendar.events_upcoming_nearby | paginate prev_label: "Previous" next_label: "Next" }}
  78.  
  79. {% else %}
  80.  
  81. <ul class="list-unstyled mb-4">
  82. {% for event in page.calendar.events_upcoming %}
  83. <li class="{% unless forloop.last == true %}mb-4 pb-4 border-bottom{% endunless %}">
  84. {% include "event" %}
  85. </li>
  86. {% endfor %}
  87. </ul>
  88.  
  89. {{ page.calendar.events_upcoming | paginate prev_label: "Previous" next_label: "Next" }}
  90.  
  91. {% endif %}
  92.  
  93. {% else %}
  94.  
  95. {% if page.calendar.show_map? %}
  96.  
  97. {% if page.calendar.events_upcoming_count > 0 %}
  98.  
  99. <div class="mb-4">
  100. <div class="form-wrap">
  101. <div class="form">
  102. <div class="map-wrap">
  103. {{ page.calendar.events_upcoming_map }}
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108.  
  109. {% endif %}
  110.  
  111. {% endif %}
  112.  
  113. {% if page.calendar.events_upcoming_count == 0 %}
  114. No {{ page.calendar.event_name | pluralize | downcase }} yet.
  115. {% if page.calendar.allow_user_submitted? %}
  116. You should <a href="{{ page.calendar.new_event_url }}">host your own</a>!
  117. {% endif %}
  118.  
  119. {% else %}
  120.  
  121. <ul class="list-unstyled mb-4">
  122. {% for event in page.calendar.events_upcoming %}
  123. <li class="{% unless forloop.last == true %}mb-4 pb-4 border-bottom{% endunless %}">
  124. {% include "event" %}
  125. </li>
  126. {% endfor %}
  127. </ul>
  128.  
  129. {% if page.calendar.allow_user_submitted? %}
  130. <div class="mt-4 pt-4 border-top">
  131. <a class="btn btn-secondary" href="{{ page.calendar.new_event_url }}">Host your own {{ page.calendar.event_name | downcase }}</a>
  132. </div>
  133. {% endif %}
  134.  
  135. {{ page.calendar.events_upcoming | paginate prev_label: "&laquo;" next_label: "&raquo;" }}
  136.  
  137. {% endif %}
  138.  
  139. {% endif %}
  140. </div> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement