camp/content/templates/index.html

35 lines
985 B
HTML
Raw Permalink Normal View History

2017-06-10 09:59:00 +00:00
{% extends 'base.html' %}
{% block content %}
2017-08-03 17:44:00 +00:00
{% for content in homepage %}
2017-06-10 09:59:00 +00:00
<div class="large-8 medium-8 columns special-column">
<div class="index-text">
2017-08-03 17:44:00 +00:00
<h4 class="big-title">{{content.title}} </a></h4>
2017-12-18 12:54:04 +00:00
<p> {{content.formatted_header}} </p>
<p> {{content.formatted_body}} </p>
2017-06-10 09:59:00 +00:00
</div>
{% endfor %}
</div>
<div class="large-4 medium-4 columns">
2017-12-18 12:54:04 +00:00
{% if upcoming_events.exists %}
2017-06-10 09:59:00 +00:00
<h4 class="sidebar-h4"> Upcoming Events </h4>
2017-12-18 12:54:04 +00:00
{% include "event_preview.html" with events=upcoming_events %}
{% endif %}
{% if ongoing_events.exists %}
<h4 class="sidebar-h4"> Ongoing Events </h4>
{% include "event_preview.html" with events=ongoing_events %}
{% endif %}
{% if past_events.exists %}
<h4 class="sidebar-h4"> Past Events </h4>
{% include "event_preview.html" with events=past_events %}
{% endif %}
2018-08-21 10:43:37 +00:00
<a href="/events/index/">All Events</a>
<br>
<br>
2017-12-18 12:54:04 +00:00
</div>
2017-06-10 09:59:00 +00:00
2017-12-18 12:54:04 +00:00
{% endblock %}