13 export semaine
This commit is contained in:
		@@ -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 %}
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user