Back

Template Source: root/events.html

{% extends 'base.html' %} {% block title %}Events{% endblock %} {% block header %} {% include 'includes/top_nav.html' with on="events" %} {% endblock %} {% block content %} <div class="content"> <div class="page sub"> <div class="title"> <h1>Events</h1> <div class="clear"></div> </div><!--/title--> <div class="container"> <div class="flat"> <h2>Upcoming Events</h3> {% for object in current_and_future_events %} <div class="item"> <img src="{{ object.get_200x200_url }}" /> <h3><a href="{{ object.external_link }}" target="_blank">{{ object.title }}</a></h3> <h4>{{ object.venue_name }}</h4> <p>{{ object.start|date:"F d, Y" }}{% ifnotequal object.start object.end %} - {{ object.end|date:"F d, Y"}}{% endifnotequal %}</p> {% if object.rich_content %}<p>{{ object.rich_content|safe }}</p>{% endif %} <div class="clear"></div> </div><!--/item--> {% empty %} <p class="empty">There are no upcoming events.</p> {% endfor %} <br /><br /> <h2>Past Events</h3> {% for object in past_events %} <div class="item"> <img src="{{ object.get_200x200_url }}" /> <h3><a href="{{ object.external_link }}" target="_blank">{{ object.title }}</a></h3> <h4>{{ object.venue_name }}</h4> <p>{{ object.start|date:"F d, Y" }}{% ifnotequal object.start object.end %} - {{ object.end|date:"F d, Y"}}{% endifnotequal %}</p> {% if object.rich_content %}<p>{{ object.rich_content|safe }}</p>{% endif %} <div class="clear"></div> </div><!--/item--> {% empty %} <p class="empty">There are no past events</p> {% endfor %} </div><!--/flat--> </div><!--/container--> </div><!--/page--> </div><!--/content--> {% endblock %}