From 4283740bf1d15ff385ac94846302cca4997e3fa8 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 13 Sep 2019 22:59:38 +0000 Subject: [PATCH] Added a link to RFCs rendered with inline errata (where available) to the /doc/rfcNNNN pages. - Legacy-Id: 16732 --- ietf/doc/views_doc.py | 2 ++ ietf/settings.py | 1 + 2 files changed, 3 insertions(+) diff --git a/ietf/doc/views_doc.py b/ietf/doc/views_doc.py index bacf75ea2..1aa240af2 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -221,6 +221,8 @@ def document_main(request, name, rev=None): if "txt" in found_types: file_urls.append(("html", settings.TOOLS_ID_HTML_URL + name)) + if doc.tags.filter(slug="errata"): + file_urls.append(("with errata", settings.RFC_EDITOR_INLINE_ERRATA_URL.format(rfc_number=rfc_number))) if not found_types: content = "This RFC is not currently available online." diff --git a/ietf/settings.py b/ietf/settings.py index 7e8b07396..70f241282 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -723,6 +723,7 @@ RFC_EDITOR_GROUP_NOTIFICATION_EMAIL = "webmaster@rfc-editor.org" RFC_EDITOR_QUEUE_URL = "https://www.rfc-editor.org/queue2.xml" RFC_EDITOR_INDEX_URL = "https://www.rfc-editor.org/rfc/rfc-index.xml" RFC_EDITOR_ERRATA_URL = "https://www.rfc-editor.org/errata_search.php?rfc={rfc_number}&rec_status=0" +RFC_EDITOR_INLINE_ERRATA_URL = "https://www.rfc-editor.org/rfc/beta/errata/RFC{rfc_number}.html" # NomCom Tool settings ROLODEX_URL = ""