From 56c232ec1dfd9c8943cc1b81066f780f5e5cf759 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Thu, 4 Aug 2016 21:08:56 +0000 Subject: [PATCH] Add guards against very old meetings. For more modern, past, meetings, add a warning that these are not the official proceedings and provide a link to the official proceedings. - Legacy-Id: 11757 --- ietf/meeting/views.py | 4 ++++ ietf/templates/meeting/proceedings.html | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ietf/meeting/views.py b/ietf/meeting/views.py index 7403790ef..cd7cdfba1 100644 --- a/ietf/meeting/views.py +++ b/ietf/meeting/views.py @@ -1446,6 +1446,10 @@ def floor_plan(request, num=None, floor=None, ): def proceedings(request, num=None): meeting = get_meeting(num) + + if meeting.number <= 64 or not meeting.agenda.assignments.exists(): + return HttpResponseRedirect( 'https://www.ietf.org/proceedings/%s' % num ) + begin_date = meeting.get_submission_start_date() cut_off_date = meeting.get_submission_cut_off_date() cor_cut_off_date = meeting.get_submission_correction_date() diff --git a/ietf/templates/meeting/proceedings.html b/ietf/templates/meeting/proceedings.html index 834c1f0fa..3676741f5 100644 --- a/ietf/templates/meeting/proceedings.html +++ b/ietf/templates/meeting/proceedings.html @@ -22,6 +22,11 @@

This page is under construction

+ {% if meeting_num|add:0 <= 96 %} +

+ These are not the official proceedings for IETF{{meeting_num}}. This page shows what would be generated by the new automatic proceedings generator for that meeting. The official proceedings are located at https://www.ietf.org/proceedings/{{meeting_num}} +

+ {% endif %} {# cache for 15 minutes, as long as there's no proceedings activity. takes 4-8 seconds to generate. #} {% load cache %}