summaryrefslogtreecommitdiffstats
path: root/templates/agenda/event_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/event_list.html')
-rwxr-xr-xtemplates/agenda/event_list.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/agenda/event_list.html b/templates/agenda/event_list.html
new file mode 100755
index 0000000..b9517b8
--- /dev/null
+++ b/templates/agenda/event_list.html
@@ -0,0 +1,29 @@
+{% extends 'agenda/base.html' %}
+{% load i18n %}
+{% if title %}{% block content_title %}<h1>{{ title|escape }}</h1>{% endblock %}
+{% endif %}
+{% block content %}
+{% if event %}
+ {% for object in event %}
+ <div class="module">
+ {% ifchanged object.start_date %} <h2><a href="/agenda/{{ object.id }}">{{ object.start_date|date }}</a></h2>{% endifchanged %}
+ <h3><a href="/agenda/{{ object.id }}">{{ object.title|upper }}</a></h3>
+ <p>{{ object.description }}</p>
+ <tr>
+ <td>{% if object.attendance_set.count %}{% trans 'Interested' %}: {{ object.attendance_set.count }}{% endif %}
+ {% if object.comment_set.all %}{% trans 'Comments' %}: {{ object.comment_set.count }}{% endif %}</td>
+ <td bgcolor="#{{ object.location.color }}"><a href="location/{{ object.location.id }}" class="changelink">Location: {{ object.location.title }}</a></td>
+ <td><a href="{{ object.id }}/attend/" class="addlink">I'm attending</a></td>
+ <td><a href="admin/agenda/event/{{ object.id }}" class="changelink">{% trans 'Modify' %}</a></td>
+ </tr>
+
+ </table>
+ <br>
+ </div>
+ {% endfor %}
+{% endif %}
+{% endblock %}
+{% block info %}
+template: "agenda/event_list.html"
+{% endblock %}
+