-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add disclaimer banner for unadopted I-Ds and non-IETF RFCs (#6786)
* feat: Add disclaimer banners for unadopted I-Ds and non-IETF RFCs Fixes #6539 * Fixes * Add test * Use BofreqFactory * Fix disclaimer logic * fix: Wording changes from stream owners * fix: Only insert <wbr> when there isn't a space before or after (#6821) * fix: Only insert <wbr> when there isn't a space before or after. * Fix @cabo's issue * fix: Remove debug info from template (#6897) Fixes #6895 * fix: remove link to Warren's draft from disclaimer text (#7429) --------- Co-authored-by: Lars Eggert <lars@eggert.org>
- Loading branch information
1 parent
d5009ee
commit 720f31b
Showing
7 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{# Copyright The IETF Trust 2016-2023, All Rights Reserved #} | ||
{% load origin %} | ||
{% load ietf_filters %} | ||
{% origin %} | ||
{% if doc.type_id == "rfc" %} | ||
{% if doc.stream.slug != "ietf" and doc.std_level.slug|default:"unk" not in "bcp,ds,ps,std"|split:"," %} | ||
<div class="alert alert-warning {% if document_html %}small p-2 mt-2{% endif %}" role="alert"> | ||
This RFC was published on the {{ doc.stream.desc }} stream. | ||
This RFC is <strong>not endorsed by the IETF</strong> and has <strong>no formal standing</strong> in the | ||
<a href="{% url 'ietf.doc.views_doc.document_main' name='rfc2026' %}">IETF standards process</a>. | ||
</div> | ||
{% endif %} | ||
{% elif doc|is_in_stream %} | ||
{% if doc.stream.slug != "ietf" and doc.std_level.slug|default:"unk" not in "bcp,ds,ps,std"|split:"," %} | ||
<div class="alert alert-warning {% if document_html %}small p-2 mt-2{% endif %}" role="alert"> | ||
This document is an Internet-Draft (I-D) that has been submitted to the {{ doc.stream.desc }} stream. | ||
This I-D is <strong>not endorsed by the IETF</strong> and has <strong>no formal standing</strong> in the | ||
<a href="{% url 'ietf.doc.views_doc.document_main' name='rfc2026' %}">IETF standards process</a>. | ||
</div> | ||
{% endif %} | ||
{% else %} | ||
<div class="alert alert-warning {% if document_html %}small p-2 mt-2{% endif %}" role="alert"> | ||
This document is an Internet-Draft (I-D). | ||
Anyone may submit an I-D to the IETF. | ||
This I-D is <strong>not endorsed by the IETF</strong> and has <strong>no formal standing</strong> in the | ||
<a href="{% url 'ietf.doc.views_doc.document_main' name='rfc2026' %}">IETF standards process</a>. | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters