From f8c4780b757c9333eb7e70ed80be2ed4e9266249 Mon Sep 17 00:00:00 2001 From: Matthew Holloway Date: Tue, 30 Jul 2024 14:00:21 +1200 Subject: [PATCH 1/2] fix: Sort RFCs by date --- ietf/static/js/list.js | 6 ++++-- ietf/templates/person/profile.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ietf/static/js/list.js b/ietf/static/js/list.js index d7e9dc944b..c16111ba63 100644 --- a/ietf/static/js/list.js +++ b/ietf/static/js/list.js @@ -5,8 +5,10 @@ import { function text_sort(a, b, options) { function prep(e, options) { - return $($.parseHTML(e.values()[options.valueName])) - .text() + const el = $($.parseHTML(e.values()[options.valueName])); + const cell_el = e.elm.querySelector(`.${options.valueName}`) + const sort_by_number = cell_el?.getAttribute('data-sort-number') + return sort_by_number ?? el.text() .trim() .replaceAll(/\s+/g, ' '); } diff --git a/ietf/templates/person/profile.html b/ietf/templates/person/profile.html index 42e5d2e43a..1424f037a1 100644 --- a/ietf/templates/person/profile.html +++ b/ietf/templates/person/profile.html @@ -106,7 +106,7 @@

RFC {{ doc.rfc_number }} - {{ doc.pub_date|date:"b Y"|title }} + {{ doc.pub_date|date:"b Y"|title }} {{ doc.title|urlize_ietf_docs }} {% with doc.referenced_by_rfcs_as_rfc_or_draft.count as refbycount %} From f4c00b7a5eed130b6d88bca1aaeddd1338685088 Mon Sep 17 00:00:00 2001 From: Matthew Holloway Date: Wed, 31 Jul 2024 12:33:38 +1200 Subject: [PATCH 2/2] fix: concluded wgs and bofs date sort #7350 --- ietf/templates/group/concluded_groups.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ietf/templates/group/concluded_groups.html b/ietf/templates/group/concluded_groups.html index c748c2061b..725e8bd3cc 100644 --- a/ietf/templates/group/concluded_groups.html +++ b/ietf/templates/group/concluded_groups.html @@ -40,8 +40,8 @@

{{ label }}

Group Name - Start - Concluded + Start + Concluded @@ -51,8 +51,8 @@

{{ label }}

{{ g.acronym }} {{ g.name }} - {{ g.start_date|date:"Y-m" }} - {{ g.conclude_date|date:"Y-m" }} + {{ g.start_date|date:"Y-m" }} + {{ g.conclude_date|date:"Y-m" }} {% endfor %}