Skip to content

Commit e2134a6

Browse files
committed
Rename agendaREDESIGN.ics -> agenda.ics. The old agenda.ics file isn't in use
any more. - Legacy-Id: 6370
1 parent 83cab39 commit e2134a6

3 files changed

Lines changed: 18 additions & 53 deletions

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def ical_agenda(request, num=None, schedule_name=None):
692692
else:
693693
vtimezone = None
694694

695-
return HttpResponse(render_to_string("meeting/agendaREDESIGN.ics",
695+
return HttpResponse(render_to_string("meeting/agenda.ics",
696696
{"scheduledsessions":scheduledsessions, "meeting":meeting, "vtimezone": vtimezone },
697697
RequestContext(request)), mimetype="text/calendar")
698698

ietf/templates/meeting/agenda.ics

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
11
{% load humanize %}{% autoescape off %}{% load ietf_filters %}BEGIN:VCALENDAR
22
VERSION:2.0
3-
METHOD:PUBLISH
4-
{% if meeting.time_zone %}BEGIN:VTIMEZONE
5-
TZID:{{meeting.city}}
6-
BEGIN:STANDARD
7-
TZOFFSETFROM:{{meeting.time_zone|stringformat:"+02.2d"}}00
8-
TZOFFSETTO:{{meeting.time_zone|stringformat:"+02.2d"}}00
9-
TZNAME:{{meeting.city}}
10-
DTSTART:19700101T000000
11-
END:STANDARD
12-
END:VTIMEZONE
13-
{% endif %}{% for slot in timeslots %}{% ifchanged %}{% if slot.session_name and slot.break_info %}BEGIN:VEVENT
14-
UID:ietf-{{meeting.num}}-break-{{slot.time_id}}
15-
SUMMARY:{{slot.break_info.name}}
16-
{% if venue.break_area_name and slot.break_info.show_break_location %}LOCATION:{{venue.break_area_name}}
3+
METHOD:PUBLISH{% if vtimezone %}
4+
{{vtimezone}}{% endif %}{% for ss in scheduledsessions %}
5+
BEGIN:VEVENT
6+
UID:ietf-{{meeting.number}}-{{ss.timeslot.pk}}
7+
SUMMARY:{% if ss.session.name %}{{ss.session.name}}{% else %}{% if ss.timeslot.type.name == "Break" %}{{ss.timeslot.name}}{% else %}{{ss.session.group.acronym|upper}} - {{ss.session.group.name}}{% endif%}{%endif%}
8+
{% if ss.timeslot.show_location %}LOCATION:{{ss.timeslot.get_location}}
179
{% endif %}STATUS:TENTATIVE
1810
CLASS:PUBLIC
19-
DTSTART{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.break_info.time_desc|slice:":4"}}00
20-
DTEND{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.break_info.time_desc|slice:"5:9"}}00
21-
DTSTAMP:{{ now|date:"Ymd" }}T{{ now|date:"His" }}Z
22-
END:VEVENT
23-
{% endif %}{% endifchanged %}{% for session in slot.sessions %}{%for f in filter%}{%ifequal f session.acronym%}BEGIN:VEVENT
24-
UID:ietf-{{meeting.num}}-{{session.acronym}}-{{session.ordinality}}
25-
SUMMARY:{% if session.area %}{% ifnotequal session.area "1plenary" %}{{session.acronym|upper}} - {% endifnotequal %}{% endif %}{{session.acronym_name}}
26-
LOCATION:{{session.room_id.room_name}}
27-
STATUS:TENTATIVE
28-
CLASS:PUBLIC
29-
DTSTART{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.time_desc|slice:":4"}}00
30-
DTEND{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.time_desc|slice:"5:9"}}00
31-
DTSTAMP:{{ now|date:"Ymd" }}T{{ now|date:"His" }}Z
32-
{% if session.description %}DESCRIPTION:
33-
{{ session.description|escapejs }}
34-
{% endif %}END:VEVENT
35-
{%endifequal%}{%endfor%}{% endfor %}{% endfor %}END:VCALENDAR{% endautoescape %}
11+
DTSTART{% if meeting.time_zone %};TZID="{{meeting.time_zone}}"{%endif%}:{{ ss.timeslot.time|date:"Ymd" }}T{{ss.timeslot.time|date:"Hi"}}00
12+
DTEND{% if meeting.time_zone %};TZID="{{meeting.time_zone}}"{%endif%}:{{ ss.timeslot.end_time|date:"Ymd" }}T{{ss.timeslot.end_time|date:"Hi"}}00
13+
DTSTAMP:{{ ss.timeslot.modified|date:"Ymd" }}T{{ ss.timeslot.modified|date:"His" }}Z
14+
{% if ss.timeslot.session.agenda %}URL:http://www.ietf.org{{ss.session.agenda.get_absolute_url}}
15+
DESCRIPTION:{{ss.timeslot.name}}\n{% if ss.session.agenda_note %}
16+
Note: {{ss.session.agenda_note}}\n{% endif %}{% for material in ss.session.materials.all %}
17+
\n{{material.type}}{% if material.type.name != "Agenda" %}
18+
({{material.title}}){% endif %}:
19+
http://www.ietf.org{{material.get_absolute_url}}\n{% endfor %}
20+
{% endif %}END:VEVENT{% endfor %}
21+
END:VCALENDAR{% endautoescape %}

ietf/templates/meeting/agendaREDESIGN.ics

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)