Skip to content

Commit 2b7f7de

Browse files
committed
Add navigation to the new secretariat agenda tools. Change the buttons at the top of the agenda.html page to links. Commit ready to merge.
- Legacy-Id: 9813
1 parent 61474a4 commit 2b7f7de

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def week_view(request, num=None):
611611
return render_to_response(template,
612612
{"timeslots":timeslots,"render_types":["Session","Other","Break","Plenary"]}, context_instance=RequestContext(request))
613613

614-
@role_required('Secretariat')
614+
@role_required('Area Director','Secretariat','IAB')
615615
def room_view(request, num=None):
616616
meeting = get_meeting(num)
617617

ietf/templates/meeting/agenda.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,21 @@
4141
<b>Note:</b> IETF agendas are subject to change, up to and during a meeting.
4242
</p>
4343

44-
<p class="noprint buttonlist">
44+
<p class="noprint ">
4545
{% if "-utc" in request.path %}
46-
<a class="btn btn-default" href="/meeting/agenda">Agenda in local timezone</a>
46+
<a href="{% url 'ietf.meeting.views.agenda' num=schedule.meeting.number %}">Agenda in local timezone</a>,
4747
{% else %}
48-
<a class="btn btn-default" href="/meeting/agenda-utc">Agenda in UTC timezone</a>
48+
{% comment %}<a href="{% url 'ietf.meeting.views.agenda' base='agenda-utc' %}">Agenda in UTC timezone</a>,{% endcomment %}
49+
<a href="/meeting/agenda-utc">Agenda in UTC timezone</a>,
50+
{% endif %}
51+
<a href="{% url 'ietf.meeting.views.agenda' num=schedule.meeting.number ext='.txt' %}">Plaintext agenda</a>,
52+
<a href="https://tools.ietf.org/agenda/{{schedule.meeting.number}}/">Tools-style agenda</a>
53+
{% if user|has_role:"Secretariat,Area Director,IAB" %}
54+
,
55+
<a href="{% url 'ietf.meeting.views.agenda_by_room' num=schedule.meeting.number%}">List by Room</a>,
56+
<a href="{% url 'ietf.meeting.views.agenda_by_type' num=schedule.meeting.number%}">List by Type</a>,
57+
<a href="{% url 'ietf.meeting.views.room_view' num=schedule.meeting.number%}">Room Grid</a>
4958
{% endif %}
50-
<a class="btn btn-default" href="/meeting/{{schedule.meeting.number}}/agenda.txt">Plaintext agenda</a>
51-
<a class="btn btn-default" href="https://tools.ietf.org/agenda/{{schedule.meeting.number}}/">Tools-style agenda</a>
5259
</p>
5360

5461
{# cache this part for 5 minutes -- it takes 3-6 seconds to generate #}

0 commit comments

Comments
 (0)