--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/list_events.html Mon Apr 12 18:15:21 2010 +0530
@@ -0,0 +1,42 @@
+{% extends "base.html" %}
+{% block content %}
+ {% if ongoing_events %}
+ Ongoing Workshops:
+ <table cellspacing=5 cellpadding=5>
+ {% for event in ongoing_events %}
+ <tr>
+ <td><a href="/reg/event/view/{{event.key}}">{{event.title}}</a></td>
+ <td>{{event.start_date|date:"d M Y"}} - {{event.stop_date|date:"d M Y"}}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+
+ {% if upcoming_events %}
+ Upcoming Workshops:
+ <table cellspacing=5 cellpadding=5>
+ {% for event in upcoming_events %}
+ <tr>
+ <td><a href="/reg/event/view/{{event.key}}">{{event.title}}</a></td>
+ <td>{{event.start_date|date:"d M Y"}} - {{event.stop_date|date:"d M Y"}}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+
+ <br />
+
+ {% if previous_events %}
+ Previous Workshops:
+ <table cellspacing=5 cellpadding=5>
+ {% for event in previous_events %}
+ <tr>
+ <td><a href="/reg/event/view/{{event.key}}">{{event.title}}</a></td>
+ <td>{{event.start_date|date:"d M Y"}} - {{event.stop_date|date:"d M Y"}}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+
+{% endblock %}
+