Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 848 Bytes
{% extends 'base.html' %}
{% block content %}
<div id="primary">
<h3>My Events</h3>
<a href="/" style="font-size: smaller; margin-top: 20px; margin-bottom:10px; display: block;">&larr; All Events</a>
{% 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 %}
</div>
{% endblock %}