Skip to content

Commit e24281c

Browse files
committed
Split links on the session detail page so that the title goes straight to the document content for non-draft documents. Commit ready for merge.
- Legacy-Id: 12001
1 parent 0f6e3f4 commit e24281c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/templates/meeting/session_details.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ <h2>{% if sessions|length > 1 %}Session {{ forloop.counter }} : {% endif %}{{ se
4343
{% url 'doc_view' name=pres.document.name as url %}
4444
{% endif %}
4545
<td>
46-
<a href="{{url}}">{{pres.document.title}} ({{ pres.document.name }}{% if pres.rev %}-{{ pres.rev }}{% endif %})</a>
46+
<a href="{{pres.document.get_absolute_url}}">{{pres.document.title}}</a>
47+
<a href="{{url}}">({{ pres.document.name }}{% if pres.rev %}-{{ pres.rev }}{% endif %})</a>
4748
</td>
4849
{% if user|has_role:"Secretariat" or can_manage_materials %}
4950
<td class="col-md-2">
@@ -88,7 +89,8 @@ <h2>{% if sessions|length > 1 %}Session {{ forloop.counter }} : {% endif %}{{ se
8889
{% url 'doc_view' name=pres.document.name as url %}
8990
{% endif %}
9091
<td>
91-
<a href="{{url}}">{{pres.document.title}} ({{ pres.document.name }}{% if pres.rev %}-{{ pres.rev }}{% endif %}) </a>
92+
<a href="{{pres.document.get_absolute_url}}">{{pres.document.title}} </a>
93+
<a href="{{url}}">({{ pres.document.name }}{% if pres.rev %}-{{ pres.rev }}{% endif %}) </a>
9294
</td>
9395
{% if can_manage_materials %}
9496
<td class="col-md-2">

0 commit comments

Comments
 (0)