summaryrefslogtreecommitdiff
path: root/sublab_project/calendarium
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2012-01-24 00:16:50 +0100
committerChristian Franke <nobody@nowhere.ws>2012-01-24 00:16:50 +0100
commitef367be161e91cb111ac17e046ef4f1c8706b161 (patch)
tree77863af5f504cb62cd70b738c75450bbb7e7259e /sublab_project/calendarium
parentf36fbca5ea08a47db35b087704c29b0039e0cf2f (diff)
Calendarium: don't show empty "other events" list
Diffstat (limited to 'sublab_project/calendarium')
-rw-r--r--sublab_project/calendarium/templates/calendarium/list_events.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/sublab_project/calendarium/templates/calendarium/list_events.html b/sublab_project/calendarium/templates/calendarium/list_events.html
index 6e0b4d4..b70b830 100644
--- a/sublab_project/calendarium/templates/calendarium/list_events.html
+++ b/sublab_project/calendarium/templates/calendarium/list_events.html
@@ -11,10 +11,12 @@
<li>{{ event.start|date:"l, j. F Y H:i" }} bis {{ event.end|date:"H:i" }} Uhr - {{ event.name }}<br/>{{ event.description }}</li>
{% endfor %}
</ul>
+ {% if events_source_admin %}
<h3>Was sonst noch los ist</h3>
<ul class="events">
{% for event in events_source_admin %}
<li>{{ event.start|date:"l, j. F Y H:i" }} bis {{ event.end|date:"l, j. F Y H:i" }} Uhr - {{ event.name }}<br/>{{ event.description }}</li>
{% endfor %}
+ {% endif %}
</ul>
{% endblock content %}