From f0e545029960aed04f7700b0d4e2753f14762d25 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Wed, 29 Nov 2023 12:34:12 -0400 Subject: [PATCH 1/4] feat: Sort RFCs on subseries doc pages --- ietf/templates/doc/document_subseries.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/templates/doc/document_subseries.html b/ietf/templates/doc/document_subseries.html index 55c934acd8e..74106fd737f 100644 --- a/ietf/templates/doc/document_subseries.html +++ b/ietf/templates/doc/document_subseries.html @@ -7,7 +7,7 @@ {% origin %} {{ top|safe }}

{{ doc.name|slice:":3"|upper }} {{ doc.name|slice:"3:"}} {% if doc.contains %}consists of:{% else %}currently contains no RFCs{% endif %}

- {% for rfc in doc.contains %} + {% for rfc in doc.contains|dictsort:"rfc_number" %}

RFC {{rfc.name|slice:"3:"}} : {{rfc.title}}

{% endfor %}
From 8041c3770fc2de0e350c6e1067cc1f1ba37e249d Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Wed, 29 Nov 2023 12:38:59 -0400 Subject: [PATCH 2/4] feat: Sort RFCs on subseries index pages --- ietf/templates/doc/index_subseries.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/templates/doc/index_subseries.html b/ietf/templates/doc/index_subseries.html index 8079c3091c4..3180a4535dc 100644 --- a/ietf/templates/doc/index_subseries.html +++ b/ietf/templates/doc/index_subseries.html @@ -10,7 +10,7 @@

{{type.name}}s

- {% for rfc in doc.contains %} + {% for rfc in doc.contains|dictsort:"rfc_number" %}

{{rfc.name|prettystdname}} : {{rfc.title}}

{% empty %}

{{doc.name|prettystdname}} currently contains no RFCs From 35e96bcdb0816c6c3134fd79769071327cb47c38 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Wed, 29 Nov 2023 13:35:20 -0400 Subject: [PATCH 3/4] fix: Show subseries doc name as page title --- ietf/templates/doc/document_subseries.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ietf/templates/doc/document_subseries.html b/ietf/templates/doc/document_subseries.html index 74106fd737f..f0273c9093d 100644 --- a/ietf/templates/doc/document_subseries.html +++ b/ietf/templates/doc/document_subseries.html @@ -2,11 +2,12 @@ {# Copyright The IETF Trust 2023, All Rights Reserved #} {% load origin %} {% load static %} -{% block title %}{{doc.type.name}}s{% endblock %} +{% load ietf_filters %} +{% block title %}{{ doc.name|prettystdname }}{% endblock %} {% block content %} {% origin %} {{ top|safe }} -

{{ doc.name|slice:":3"|upper }} {{ doc.name|slice:"3:"}} {% if doc.contains %}consists of:{% else %}currently contains no RFCs{% endif %}

+

{{ doc.name|prettystdname }} {% if doc.contains %}consists of:{% else %}currently contains no RFCs{% endif %}

{% for rfc in doc.contains|dictsort:"rfc_number" %}

RFC {{rfc.name|slice:"3:"}} : {{rfc.title}}

{% endfor %} @@ -26,4 +27,4 @@

{{ doc.name|slice:":3"|upper }} {{ doc.name|slice:"3:"}} {% if doc.contains Referenced by

-{% endblock %} \ No newline at end of file +{% endblock %} From 9aedf0971e8a4f972003a6a2cbf744a737956a04 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Wed, 29 Nov 2023 13:37:30 -0400 Subject: [PATCH 4/4] refactor: Use prettystdname filter for consistency --- ietf/templates/doc/document_subseries_top.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/templates/doc/document_subseries_top.html b/ietf/templates/doc/document_subseries_top.html index f7c8ba8e452..742ea51372b 100644 --- a/ietf/templates/doc/document_subseries_top.html +++ b/ietf/templates/doc/document_subseries_top.html @@ -3,7 +3,7 @@ {% origin %} {% load ietf_filters %}

- {{ doc.name|slice:":3"|upper }} {{ doc.name|slice:"3:"}} + {{ doc.name|prettystdname }}