Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ietf/group/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
from django.utils import timezone
from django.utils.html import escape
from django.views.decorators.cache import cache_page, cache_control
from django.urls import reverse

import debug # pyflakes:ignore

Expand Down Expand Up @@ -898,6 +899,18 @@ def meetings(request, acronym, group_type=None):
far_past.append(s)
past = recent_past

# Add calendar actions
cal_actions = []

cal_actions.append(dict(
label='Download as .ics',
url=reverse('ietf.meeting.views.upcoming_ical')+"?show="+group.acronym)
)
cal_actions.append(dict(
label='Subscribe with webcal',
url='webcal://'+request.get_host()+reverse('ietf.meeting.views.upcoming_ical')+"?show="+group.acronym)
)

return render(
request,
"group/meetings.html",
Expand All @@ -915,6 +928,7 @@ def meetings(request, acronym, group_type=None):
"far_past": far_past,
"can_edit": can_edit,
"can_always_edit": can_always_edit,
"cal_actions": cal_actions,
},
),
)
Expand Down
12 changes: 6 additions & 6 deletions ietf/templates/group/meetings.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ <h2 class="mt-5" id="inprogressmeets">Meetings in progress</h2>
{% if future %}
<h2 class="mt-5" id="futuremeets">
Future Meetings
<a class="ms-2"
aria-label="icalendar entry for all scheduled future {{ group.acronym }} meetings"
title="icalendar entry for all scheduled future {{ group.acronym }} meetings"
href="{% url 'ietf.meeting.views.upcoming_ical' %}?show={{ group.acronym }}">
<i class="bi bi-calendar"></i>
</a>
{% for cal_action in cal_actions %}
<a class="btn btn-primary"
href="{{ cal_action.url }}">
{{ cal_action.label }}
</a>
{% endfor %}
</h2>
<table class="table table-sm table-striped tablesorter">
<thead>
Expand Down
Loading