From 2b7f7dec52fa1a76bf0c3d90169c92c35104c202 Mon Sep 17 00:00:00 2001
From: Robert Sparks
Date: Sun, 19 Jul 2015 08:02:09 +0000
Subject: [PATCH] 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
---
ietf/meeting/views.py | 2 +-
ietf/templates/meeting/agenda.html | 17 ++++++++++++-----
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/ietf/meeting/views.py b/ietf/meeting/views.py
index 1190cde85..1d23210b3 100644
--- a/ietf/meeting/views.py
+++ b/ietf/meeting/views.py
@@ -611,7 +611,7 @@ def week_view(request, num=None):
return render_to_response(template,
{"timeslots":timeslots,"render_types":["Session","Other","Break","Plenary"]}, context_instance=RequestContext(request))
-@role_required('Secretariat')
+@role_required('Area Director','Secretariat','IAB')
def room_view(request, num=None):
meeting = get_meeting(num)
diff --git a/ietf/templates/meeting/agenda.html b/ietf/templates/meeting/agenda.html
index 8f9c4f937..b7d4527ca 100644
--- a/ietf/templates/meeting/agenda.html
+++ b/ietf/templates/meeting/agenda.html
@@ -41,14 +41,21 @@
Note: IETF agendas are subject to change, up to and during a meeting.
-
+
{% if "-utc" in request.path %}
- Agenda in local timezone
+ Agenda in local timezone,
{% else %}
- Agenda in UTC timezone
+ {% comment %}Agenda in UTC timezone,{% endcomment %}
+ Agenda in UTC timezone,
+ {% endif %}
+ Plaintext agenda,
+ Tools-style agenda
+ {% if user|has_role:"Secretariat,Area Director,IAB" %}
+ ,
+ List by Room,
+ List by Type,
+ Room Grid
{% endif %}
- Plaintext agenda
- Tools-style agenda
{# cache this part for 5 minutes -- it takes 3-6 seconds to generate #}