13 export semaine
This commit is contained in:
parent
1db30afc1a
commit
6795a221da
@ -56,7 +56,7 @@ Semaine du {{ calendar.calendar_days_list.0.date|date|frdate }}
|
|||||||
|
|
||||||
|
|
||||||
<footer>
|
<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 %}
|
{% if calendar.today_in_calendar %}
|
||||||
<a role="button" href="{% url 'aujourdhui' %}?{{ filter.get_url }}">Aujourd'hui</a>
|
<a role="button" href="{% url 'aujourdhui' %}?{{ filter.get_url }}">Aujourd'hui</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -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())
|
response = Event.export_to_ics("testsemaine", cweek.get_events())
|
||||||
return response
|
return response
|
||||||
|
|
||||||
context = {"year": year, "week": week, "calendar": cweek, "filter": filter}
|
context = {"year": year, "week": week, "calendar": cweek, "filter": filter, "ical": True}
|
||||||
if home:
|
if home:
|
||||||
context["home"] = 1
|
context["home"] = 1
|
||||||
return render(request, "agenda_culturel/page-week.html", context)
|
return render(request, "agenda_culturel/page-week.html", context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user