Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 26 lines (19 sloc) 1.03 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
{% 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 %}
    <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 %}
Something went wrong with that request. Please try again.