fix: link from session details to group about (#6134)

This commit is contained in:
Robert Sparks 2023-08-12 13:02:52 -05:00 committed by GitHub
parent a94ba22f5f
commit f30d348765
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View file

@ -2432,7 +2432,8 @@ def session_details(request, num, acronym):
# we somewhat arbitrarily use the group of the last session we get from
# get_sessions() above when checking can_manage_session_materials()
can_manage = can_manage_session_materials(request.user, session.group, session)
group = session.group
can_manage = can_manage_session_materials(request.user, group, session)
can_view_request = can_view_interim_request(meeting, request.user)
scheduled_sessions = [s for s in sessions if s.current_status == 'sched']
@ -2450,7 +2451,7 @@ def session_details(request, num, acronym):
'unscheduled_sessions':unscheduled_sessions ,
'pending_suggestions' : pending_suggestions,
'meeting' :meeting ,
'acronym' :acronym,
'group': group,
'is_materials_manager' : session.group.has_role(request.user, session.group.features.matman_roles),
'can_manage_materials' : can_manage,
'can_view_request': can_view_request,

View file

@ -1,7 +1,7 @@
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin ietf_filters static %}
{% block title %}{{ meeting }} : {{ acronym }}{% endblock %}
{% block title %}{{ meeting }} : {{ group.acronym }}{% endblock %}
{% block morecss %}
.drag-handle {
cursor: move;
@ -12,13 +12,13 @@
<h1>
{{ meeting }}
<br>
<small class="text-body-secondary">{{ acronym }}</small>
<small class="text-body-secondary"><a href="{% url 'ietf.group.views.group_about' acronym=group.acronym %}">{{ group.acronym }}</a>: {{ group.name }}</small>
</h1>
{% if meeting.start_datetime >= thisweek %}
<a class="regular float-end"
title="icalendar entry for {{ acronym }}@{{ meeting.number }}"
aria-label="icalendar entry for {{ acronym }}@{{ meeting.number }}"
href="{% url 'ietf.meeting.views.agenda_ical' num=meeting.number acronym=acronym %}">
title="icalendar entry for {{ group.acronym }}@{{ meeting.number }}"
aria-label="icalendar entry for {{ group.acronym }}@{{ meeting.number }}"
href="{% url 'ietf.meeting.views.agenda_ical' num=meeting.number acronym=group.acronym %}">
<i class="bi bi-calendar"></i>
</a>
{% endif %}

View file

@ -344,7 +344,7 @@
{% if session.video_stream_url %}
<tr>
<td>
<a href="https://www.meetecho.com/ietf{{ meeting.number }}/recordings#{{ acronym.upper }}">
<a href="https://www.meetecho.com/ietf{{ meeting.number }}/recordings#{{ group.acronym.upper }}">
<i class="bi bi-file-slides"></i> Session recording
</a>
</td>