Skip to content

Commit

Permalink
feat: Links to chatlogs and session recordings on proceedings page (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
pselkirk committed Feb 11, 2024
1 parent b4cf04a commit 5cc7e10
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ietf/meeting/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright The IETF Trust 2007-2022, All Rights Reserved
# Copyright The IETF Trust 2007-2024, All Rights Reserved
# -*- coding: utf-8 -*-


Expand Down Expand Up @@ -1070,6 +1070,9 @@ def recordings(self):
def bluesheets(self):
return list(self.get_material("bluesheets", only_one=False))

def chatlogs(self):
return list(self.get_material("chatlog", only_one=False))

def slides(self):
if not hasattr(self, "_slides_cache"):
self._slides_cache = list(self.get_material("slides", only_one=False))
Expand Down
3 changes: 2 additions & 1 deletion ietf/meeting/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright The IETF Trust 2007-2023, All Rights Reserved
# Copyright The IETF Trust 2007-2024, All Rights Reserved
# -*- coding: utf-8 -*-


Expand Down Expand Up @@ -3786,6 +3786,7 @@ def _format_materials(items):
'minutes': _format_materials((s, s.minutes()) for s in ss),
'bluesheets': _format_materials((s, s.bluesheets()) for s in ss),
'recordings': _format_materials((s, s.recordings()) for s in ss),
'chatlogs': _format_materials((s, s.chatlogs()) for s in ss),
'slides': _format_materials((s, s.slides()) for s in ss),
'drafts': _format_materials((s, s.drafts()) for s in ss),
'last_update': session.last_update if hasattr(session, 'last_update') else None
Expand Down
20 changes: 19 additions & 1 deletion ietf/templates/meeting/group_proceedings.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{# Copyright The IETF Trust 2015-2024, All Rights Reserved #}
{% load origin %}
{% origin %}
{% load ietf_filters %}
Expand Down Expand Up @@ -54,6 +54,18 @@ <h1>{{ entry.group }}</h1>
</a>
<br>
{% endfor %}
{% for chatlog in entry.chatlogs %}
<a href="{{ chatlog.material|meeting_href:meeting }}">
Chatlog
{% if chatlog.time %}{{chatlog.time|date:"D G:i"}}{% endif %}
</a>
<br>
{% empty %}
<a href="{{ entry.session.chat_archive_url }}">
Chatlog
</a>
<br>
{% endfor %}
</td>
{# recordings #}
<td>
Expand All @@ -64,6 +76,12 @@ <h1>{{ entry.group }}</h1>
</a>
<br>
{% endfor %}
{% if entry.session.video_stream_url %}
<a href="https://www.meetecho.com/ietf{{ meeting.number }}/recordings#{{ entry.group.acronym.upper }}">
Session recording
</a>
<br>
{% endif %}
</td>
{# slides #}
<td>
Expand Down

0 comments on commit 5cc7e10

Please sign in to comment.