Commit 67109fd2 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Export ical only if seminar is active

parent 437f3309
......@@ -798,7 +798,7 @@ class SeminarPage(IndexPage):
def render(self):
"""Export ical file before rendering"""
if 'calendar' in self.conf.site:
if 'calendar' in self.conf.site and self.seminar['status'] == 'actif':
self._export_ical()
if self.subpages: # Populate subpages with ical_url
for subpage in self.subpages:
......
{% extends "base.html" %}
{% block fixed_action %}
{% if site.calendar %}
{% if page.ical_url %}
{% call macros.fixed_action(icon="event") %}
<div class="center">
<h3>S'abonner au séminaire</h3>
......
......@@ -326,7 +326,7 @@ SUMMARY:Admettre propre existence crainte mot prochain bas
DTSTART;VALUE=DATE-TIME:20180625T042207
DTEND;VALUE=DATE-TIME:20180625T052207
DTSTAMP;VALUE=DATE-TIME:20180625T042207Z
UID:e443df78-9558-867f-5ba9-1faf7a024204
UID:eb2083e6-ce16-4dba-0ff1-8e0242af9fc3
DESCRIPTION:Selon empêcher problème nuage. Paysan époque voici avenir f
leur déjà. Compte avenir divers verre. Se avant plutôt mine demander. S
érieux que prison. Profond doucement descendre prouver type. Expérience
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment