diff --git a/cal/views.py b/cal/views.py index a7abc43..4f3b611 100644 --- a/cal/views.py +++ b/cal/views.py @@ -35,28 +35,28 @@ def formatday(self, day, weekday): if date.today() == date(self.year, self.month, day): cssclass += ' today' cssclass += ' filled' - body = ['
- {% if not new %} - {{ event.startDate|date:"D d.m.Y H:i" }} {% if event.endDate %} - {% if event.start_end_date_eq %} {{ event.endDate|date:"H:i" }} {% else %} {{ event.endDate|date:"D d.m.Y H:i" }} {% endif %} {% endif %} - {% if event.wikiPage %} {% endif %}{{ event.name }}{% if event.wikiPage %}{% endif %} + {% if not new %} +
+ {{ event.startDate|date:"D d.m.Y H:i" }} {% if event.endDate %} - {% if event.start_end_date_eq %} {{ event.endDate|date:"H:i" }} {% else %} {{ event.endDate|date:"D d.m.Y H:i" }} {% endif %} {% endif %} + {% if event.wikiPage %} {% endif %}{{ event.name }}{% if event.wikiPage %}{% endif %} {% if event.teaser %} {% endif %} {% if event.category %} | {{ event.category }}{% endif %} {% if event.location%} | {{ event.location }}{% endif %} + {% if user.is_authenticated and not edit_disabled %} + + Edit + + ical + {%endif %} +
+ + {%else%} + +Download ALL events in ical format
+ {%endif %} + - {% endif %} - {% if user.is_authenticated and not edit_disabled %} - {%if not new %}Edit{%else%}Create New Event{%endif%} {% endif %} - ical - {% if user.is_authenticated %} -