datatracker/ietf/templates/meeting/agenda.ics
2013-10-15 17:45:55 +00:00

22 lines
1.3 KiB
Plaintext

{% load humanize %}{% autoescape off %}{% load ietf_filters %}BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH{% if vtimezone %}
{{vtimezone}}{% endif %}{% for slot in timeslots %}
BEGIN:VEVENT
UID:ietf-{{slot.meeting.number}}-{{slot.pk}}
SUMMARY:{% if slot.session.name %}{{slot.session.name}}{% else %}{% if slot.type.name == "Break" %}{{slot.name}}{% else %}{{slot.session.group.acronym|upper}} - {{slot.session.group.name}}{% endif%}{%endif%}
{% if slot.show_location %}LOCATION:{{slot.get_location}}
{% endif %}STATUS:TENTATIVE
CLASS:PUBLIC
DTSTART{% if meeting.time_zone %};TZID="{{meeting.time_zone}}"{%endif%}:{{ slot.time|date:"Ymd" }}T{{slot.time|date:"Hi"}}00
DTEND{% if meeting.time_zone %};TZID="{{meeting.time_zone}}"{%endif%}:{{ slot.end_time|date:"Ymd" }}T{{slot.end_time|date:"Hi"}}00
DTSTAMP:{{ slot.modified|date:"Ymd" }}T{{ slot.modified|date:"His" }}Z
{% if slot.session.agenda %}URL:http://www.ietf.org{{slot.session.agenda.get_absolute_url}}
DESCRIPTION:{{slot.name}}\n{% if slot.session.agenda_note %}
Note: {{slot.session.agenda_note}}\n{% endif %}{% for material in slot.session.materials.all %}
\n{{material.type}}{% if material.type.name != "Agenda" %}
({{material.title}}){% endif %}:
http://www.ietf.org{{material.get_absolute_url}}\n{% endfor %}
{% endif %}END:VEVENT{% endfor %}
END:VCALENDAR{% endautoescape %}