Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 1.145 kb
{% extends whichbase %}
{% block content %}
{% include 'nav_menu.html' %}
<div id="primary">
{% ifnotequal whichbase "mini.html" %}<h3>Upcoming Events</h3>{% endifnotequal %}
{% regroup events by start_date as grouped_events %}
{% for events in grouped_events %}
{% ifchanged events.grouper|date:"F" %}
<h3>{{events.grouper|date:"F Y" }}</h3>
{% endifchanged %}
<h4>{% ifequal events.grouper today.date %}<span style="text-decoration:underline;">Today</span> - {% endifequal %}{% ifequal events.grouper tomorrow.date %}<span style="text-decoration:underline;">Tomorrow</span> - {% endifequal %}{{events.grouper|date:"l, F j"}}</h4>
<table>
{% for event in events.list %}
{% include 'list_event.html' %}
{% endfor %}
</table>
{% endfor %}
<p><a href="/past" style="font-size: smaller;">&larr; Past Events</a></p>
<div style="font-size: x-small; float: right; color: gray;">{{ today|date }}</div>
<p style="font-size: x-small;">Alternative formats: <a href="/events.ics">iCal</a> | <a href="/events.rss">RSS</a> | <a href="/events.json">JSON</a></p>
</div>
{% endblock %}
Jump to Line
Something went wrong with that request. Please try again.