Skip to content

Commit 83bef1d

Browse files
committed
Merged in [9813] from rjsparks@nostrum.com:
Add navigation to the new secretariat agenda tools. Change the buttons at the top of the agenda.html page to links. - Legacy-Id: 9825 Note: SVN reference [9813] has been migrated to Git commit 2b7f7de
2 parents f9bca1b + 2b7f7de commit 83bef1d

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
@@ -618,7 +618,7 @@ def week_view(request, num=None):
618618
return render_to_response(template,
619619
{"timeslots":timeslots,"render_types":["Session","Other","Break","Plenary"]}, context_instance=RequestContext(request))
620620

621-
@role_required('Secretariat')
621+
@role_required('Area Director','Secretariat','IAB')
622622
def room_view(request, num=None):
623623
meeting = get_meeting(num)
624624

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)