13 export semaine

This commit is contained in:
SebF 2024-05-19 16:30:50 +02:00
parent 1db30afc1a
commit 6795a221da
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ Semaine du {{ calendar.calendar_days_list.0.date|date|frdate }}
<footer>
<a role="button" href="{% url 'week_view_ical' day.year day %}" >Exporter ical {% picto_from_name "calendar" %}</a>
<a role="button" href="{% url 'week_view_ical' year week %}" >Exporter ical {% picto_from_name "calendar" %}</a>
{% if calendar.today_in_calendar %}
<a role="button" href="{% url 'aujourdhui' %}?{{ filter.get_url }}">Aujourd'hui</a>
{% endif %}

View File

@ -305,7 +305,7 @@ def week_view(request, year=None, week=None, home=False, ical=False):
response = Event.export_to_ics("testsemaine", cweek.get_events())
return response
context = {"year": year, "week": week, "calendar": cweek, "filter": filter}
context = {"year": year, "week": week, "calendar": cweek, "filter": filter, "ical": True}
if home:
context["home"] = 1
return render(request, "agenda_culturel/page-week.html", context)