33 lines
2.1 KiB
Plaintext
33 lines
2.1 KiB
Plaintext
{% load humanize tz %}{% autoescape off %}{% load ietf_filters textfilters %}BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
METHOD:PUBLISH
|
|
PRODID:-//IETF//datatracker.ietf.org ical upcoming//EN
|
|
{{vtimezones}}{% for item in assignments %}BEGIN:VEVENT
|
|
UID:ietf-{{item.session.meeting.number}}-{{item.timeslot.pk}}
|
|
SUMMARY:{% if item.session.name %}{{item.session.group.acronym|lower}} - {{item.session.name|ics_esc}}{% else %}{{item.session.group.acronym|lower}} - {{item.session.group.name}}{%endif%}
|
|
{% if item.schedule.meeting.city %}LOCATION:{{item.schedule.meeting.city}},{{item.schedule.meeting.country}}
|
|
{% endif %}STATUS:{{item.session.ical_status}}
|
|
CLASS:PUBLIC
|
|
DTSTART{% ics_date_time item.timeslot.local_start_time item.schedule.meeting.time_zone %}
|
|
DTEND{% ics_date_time item.timeslot.local_end_time item.schedule.meeting.time_zone %}
|
|
DTSTAMP{% ics_date_time item.timeslot.modified|utc 'utc' %}{% if item.session.agenda %}
|
|
URL:{{item.session.agenda.get_href}}{% endif %}
|
|
DESCRIPTION:{% if item.timeslot.name %}{{item.timeslot.name|ics_esc}}\n{% endif %}{% if item.session.agenda_note %}
|
|
Note: {{item.session.agenda_note|ics_esc}}\n{% endif %}{% for material in item.session.materials.all %}
|
|
\n{{material.type}}{% if material.type.name != "Agenda" %}
|
|
({{material.title|ics_esc}}){% endif %}:
|
|
{{material.get_href}}\n{% endfor %}{% if item.session.remote_instructions %}
|
|
Remote instructions: {{ item.session.remote_instructions }}\n{% endif %}
|
|
END:VEVENT
|
|
{% endfor %}{% for meeting in ietfs %}BEGIN:VEVENT
|
|
UID:ietf-{{ meeting.number }}
|
|
SUMMARY:IETF {{ meeting.number }}{% if meeting.city %}
|
|
LOCATION:{{ meeting.city }},{{ meeting.country }}{% endif %}
|
|
CLASS:PUBLIC
|
|
DTSTART;VALUE=DATE{% if meeting.time_zone %};TZID={{ meeting.time_zone|ics_esc }}{% endif %}:{{ meeting.date|date:"Ymd" }}
|
|
DTEND;VALUE=DATE{% if meeting.time_zone %};TZID={{ meeting.time_zone|ics_esc }}{% endif %}:{{ meeting.end_date|next_day|date:"Ymd" }}
|
|
DTSTAMP{% ics_date_time meeting.cached_updated|utc 'utc' %}
|
|
URL:{{ request.scheme }}://{{ request.get_host }}{% url 'agenda' num=meeting.number %}
|
|
END:VEVENT
|
|
{% endfor %}END:VCALENDAR{% endautoescape %}
|