Moved some explicit URLs from code and templates to settings (related to www6 cleanup).

- Legacy-Id: 16230
This commit is contained in:
Henrik Levkowetz 2019-06-03 14:53:30 +00:00
parent 94de3e0f7e
commit 47cbb8cf1b
3 changed files with 8 additions and 4 deletions

View file

@ -192,8 +192,8 @@ def agenda(request, date=None):
data = agenda_data(date)
if has_role(request.user, ["Area Director", "IAB Chair", "Secretariat"]):
data["sections"]["1.1"]["title"] = data["sections"]["1.1"]["title"].replace("Roll call", '<a href="https://www6.ietf.org/iesg/internal/rollcall.txt">Roll Call</a>')
data["sections"]["1.3"]["title"] = data["sections"]["1.3"]["title"].replace("minutes", '<a href="https://www6.ietf.org/iesg/internal/minutes.txt">Minutes</a>')
data["sections"]["1.1"]["title"] = data["sections"]["1.1"]["title"].replace("Roll call", '<a href="%s">Roll Call</a>' % settings.IESG_ROLL_CALL_URL )
data["sections"]["1.3"]["title"] = data["sections"]["1.3"]["title"].replace("minutes", '<a href="%s">Minutes</a>' % settings.IESG_MINUTES_URL)
request.session['ballot_edit_return_point'] = request.path_info
return render(request, "iesg/agenda.html", {
@ -283,7 +283,9 @@ def agenda_package(request, date=None):
"date": data["date"],
"sections": sorted(data["sections"].iteritems()),
"roll_call": data["sections"]["1.1"]["text"],
"roll_call_url": settings.IESG_ROLL_CALL_URL
"minutes": data["sections"]["1.3"]["text"],
"minutes_url": settings.IESG_MINUTES_URL
"management_items": [(num, section) for num, section in data["sections"].iteritems() if "6" < num < "7"],
}, content_type='text/plain')

View file

@ -603,7 +603,9 @@ AGENDA_PATH = '/a/www/www6s/proceedings/'
IPR_DOCUMENT_PATH = '/a/www/ietf-ftp/ietf/IPR/'
IESG_TASK_FILE = '/a/www/www6/iesg/internal/task.txt'
IESG_ROLL_CALL_FILE = '/a/www/www6/iesg/internal/rollcall.txt'
IESG_ROLL_CALL_URL = 'https://www6.ietf.org/iesg/internal/rollcall.txt'
IESG_MINUTES_FILE = '/a/www/www6/iesg/internal/minutes.txt'
IESG_MINUTES_URL = 'https://www6.ietf.org/iesg/internal/minutes.txt'
IESG_WG_EVALUATION_DIR = "/a/www/www6/iesg/evaluation"
# Move drafts to this directory when they expire
INTERNET_DRAFT_ARCHIVE_DIR = '/a/www/www6s/draft-archive'

View file

@ -3,13 +3,13 @@
Contents:
1. Roll Call and Dial-In Instructions
https://www6.ietf.org/iesg/internal/rollcall.txt
{{ roll_call_url }}
2. Agenda
https://datatracker.ietf.org/iesg/agenda/
3. Management Item Details
https://datatracker.ietf.org/iesg/agenda/#6
4. Previous minutes
https://www6.ietf.org/iesg/internal/minutes.txt
{{ minutes_url }}
------------------------------------------------------------------------
1. ROLL CALL AND DIAL-IN INSTRUCTIONS