Skip to content

Commit 6eda94d

Browse files
committed
Use anchors on session_details to let the browser go directly to the particular session selected from meeting_materials. This is paricularly useful for the plenary. Commit ready for merge.
- Legacy-Id: 12002
1 parent e24281c commit 6eda94d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% load ietf_filters session_filters %}
22
{% if user|has_role:"Secretariat" or session|can_manage_materials:user and not session.is_material_submission_cutoff %}
3-
<a class="button btn-default btn-sm" href="{% url 'ietf.meeting.views.session_details' num=session.meeting.number acronym=session.group.acronym %}">Edit</a>
3+
<a class="button btn-default btn-sm" href="{% url 'ietf.meeting.views.session_details' num=session.meeting.number acronym=session.group.acronym %}#session_{{session.pk}}">Edit</a>
44
{% endif %}

ietf/templates/meeting/session_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<h1>{{ meeting }} : {{ acronym }}</h1>
1616

1717
{% for session in sessions %}
18-
<h2>{% if sessions|length > 1 %}Session {{ forloop.counter }} : {% endif %}{{ session.time }}{% if session.name %} : {{ session.name }}{% endif %}</h2>
18+
<h2 id="session_{{session.pk}}">{% if sessions|length > 1 %}Session {{ forloop.counter }} : {% endif %}{{ session.time }}{% if session.name %} : {{ session.name }}{% endif %}</h2>
1919
{% if session.agenda_note %}<h3>{{session.agenda_note}}</h3>{% endif %}
2020

2121
{% if can_manage_materials %}

0 commit comments

Comments
 (0)