From 6e1c2e6a861c25df230c41b7d6f30b3e3c01951c Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 27 Jul 2012 20:17:06 +0000 Subject: [PATCH] Tweaked meeting materials list to avoid duplicate rows for WGs with more than one slot, as long as the materials list is the same (which is the only thing supported by other parts of the system at this time). - Legacy-Id: 4632 --- ietf/templates/meeting/agenda.html | 7 ++++--- ietf/templates/meeting/list.html | 14 ++++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/ietf/templates/meeting/agenda.html b/ietf/templates/meeting/agenda.html index 01e84e3c4..028f630a0 100644 --- a/ietf/templates/meeting/agenda.html +++ b/ietf/templates/meeting/agenda.html @@ -93,7 +93,8 @@ img.hidden { display: none; } { weekview.setAttribute("src","week-view.html#"+frag); weekview.className = ''; - ical_href.setAttribute("href","agenda.ics?"+frag); + ical_url = ical_href.getAttribute("href").split("?")[0]; + ical_href.setAttribute("href",ical_url+"?"+frag); ical_link.className = ''; } else @@ -258,7 +259,7 @@ Updated {{ modified|date:"Y-m-d H:i:s T" }}

IETF agendas are subject to change, up to and during the meeting.

{# cache this part for 15 minutes -- it takes 3-6 seconds to generate #} -{% load cache %}{% cache 900 ietf_meeting_agenda meeting.number %} +{% load cache %}{% cache 1 ietf_meeting_agenda meeting.number %} You can customize the agenda below to show only selected working group sessions. To be able to return to the customized view later, bookmark the resulting URL:
@@ -283,7 +284,7 @@ You can customize the agenda below to show only selected working group sessions. Groups displayed in italics are BOFs - + diff --git a/ietf/templates/meeting/list.html b/ietf/templates/meeting/list.html index 6c374faad..8989451f3 100644 --- a/ietf/templates/meeting/list.html +++ b/ietf/templates/meeting/list.html @@ -30,11 +30,13 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}

{% endif %} -{% regroup ietf|dictsort:"group.parent.id" by group.parent.name as areas %} +{% regroup ietf|dictsort:"group.parent.acronym" by group.parent.name as areas %} {% for sessions in areas %}

{{ sessions.grouper }}

{% for session in sessions.list|dictsort:"group.acronym" %} - {% include "meeting/list_group.html" %} + {% ifchanged %} + {% include "meeting/list_group.html" %} + {% endifchanged %} {% endfor %} {% endfor %} @@ -42,7 +44,9 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}

{% if training %}

Training

{% for session in training %} - {% include "meeting/list_group.html" %} + {% ifchanged %} + {% include "meeting/list_group.html" %} + {% endifchanged %} {% endfor %} {% endif %} @@ -52,7 +56,9 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}

{% if irtf %}

IRTF

{% for session in irtf|dictsort:"group.acronym" %} - {% include "meeting/list_group.html" %} + {% ifchanged %} + {% include "meeting/list_group.html" %} + {% endifchanged %} {% endfor %} {% endif %}