summaryrefslogtreecommitdiffstats
path: root/templates/agenda/events_tag.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/events_tag.html')
-rwxr-xr-xtemplates/agenda/events_tag.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/agenda/events_tag.html b/templates/agenda/events_tag.html
new file mode 100755
index 0000000..3053243
--- /dev/null
+++ b/templates/agenda/events_tag.html
@@ -0,0 +1,30 @@
+{% load i18n %}
+{% for object in event %}
+ {% if object.public or user.is_staff %}
+ <div class="module">
+ {% ifchanged object.start_date.day %} <h2><a href="{% url agenda.views.calendarshape object.start_date.year object.start_date.month %}">{{ object.start_date|date:"D" }} - {{ object.start_date|date }}</a></h2>{% endifchanged %}
+
+ {% if object.picture %}<img src="{{ object.picture.url }}" width="90px" align="right" >{% endif %}
+ <h3><a href="{% url agenda.views.event object.id %}">{{ object.title|upper }}</a></h3>
+ <p>{{ object.description|linebreaks }}</p>
+ {% if user.is_staff %}
+ <p>{% trans 'Public' %}: {{ object.public|yesno }} | {% trans 'Confirmed' %}: {{ object.confirmed|yesno:"yes,no" }}
+ {% if object.confirmed %}<img src="http://infopoint/media/img/admin/icon-yes.gif" alt="1" />{% else %}
+ <img src="http://infopoint/media/img/admin/icon-no.gif" alt="0" />
+ {% endif %}
+ {% endif %}<p>
+ {% if object.attendance_set.count %}{% trans 'Interested' %}: {{ object.attendance_set.count }}{% endif %}
+ {% if object.comment_set.all %}<p>{% trans 'Comments' %}: {{ object.comment_set.count }}{% endif %}</td>
+ {% if object.redes.count %}<p>{% trans 'Groups' %}:
+ {% for network in object.redes.all %}
+ <a href="{% url agenda.views.justonegroup network.id %}">{{ network.name }}</a>
+ {% endfor %} - {% endif %}
+ <a href="{% url agenda.views.location object.location.id %}" >{% trans 'Location' %}: {{ object.location.title }}</a></td>
+ {% if user.is_staff %}
+ <td><a href="/admin/agenda/event/{{ object.id }}" class="changelink">{% trans 'Modify' %}</a> - {{ object.start_date|time }}</td>
+ {% endif %}
+<br>
+{% endif %}
+
+</div>
+{% endfor %}