From bd9d3285b5d6bafd70fb0c69b3ad4b11bbf572d9 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 18 Jul 2023 17:01:43 +0300 Subject: [PATCH] fix: #timeline -> #doc-timeline (#5985) Fixes #5923 --- ietf/static/css/ietf.scss | 2 +- ietf/static/js/document_timeline.js | 16 ++++++++-------- ietf/templates/doc/document_bofreq.html | 2 +- ietf/templates/doc/document_charter.html | 2 +- ietf/templates/doc/document_chatlog.html | 2 +- ietf/templates/doc/document_conflict_review.html | 2 +- ietf/templates/doc/document_draft.html | 2 +- ietf/templates/doc/document_material.html | 2 +- ietf/templates/doc/document_polls.html | 2 +- ietf/templates/doc/document_status_change.html | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ietf/static/css/ietf.scss b/ietf/static/css/ietf.scss index 88c9cbda0..f705bc1cb 100644 --- a/ietf/static/css/ietf.scss +++ b/ietf/static/css/ietf.scss @@ -272,7 +272,7 @@ th, } // Styles for d3.js graphical SVG timelines -#timeline { +#doc-timeline { font-size: small; .axis path, diff --git a/ietf/static/js/document_timeline.js b/ietf/static/js/document_timeline.js index babde0dee..d8532c362 100644 --- a/ietf/static/js/document_timeline.js +++ b/ietf/static/js/document_timeline.js @@ -86,7 +86,7 @@ function scale_x() { } function update_x_axis() { - d3.select("#timeline svg .x.axis") + d3.select("#doc-timeline svg .x.axis") .call(x_axis) .selectAll("text") .style("text-anchor", "end") @@ -96,7 +96,7 @@ function update_x_axis() { function update_timeline() { bar_y = {}; scale_x(); - var chart = d3.select("#timeline svg") + var chart = d3.select("#doc-timeline svg") .attr("width", width); // enter data (skip the last pseudo entry) var bar = chart.selectAll("g") @@ -111,12 +111,12 @@ function draw_timeline() { bar_height = parseFloat($("body") .css("line-height")); - var div = $("#timeline"); + var div = $("#doc-timeline"); div.addClass("my-3"); if (div.is(":empty")) { div.append(""); } - var chart = d3.select("#timeline svg") + var chart = d3.select("#doc-timeline svg") .attr("width", width); var defs = chart.append("defs"); @@ -249,7 +249,7 @@ d3.json("doc.json") published: expiration_date(data[data.length - 1]) }); - width = $("#timeline") + width = $("#doc-timeline") .width(); draw_timeline(); } @@ -258,11 +258,11 @@ d3.json("doc.json") $(window) .on({ resize: function () { - var g = $("#timeline svg"); + var g = $("#doc-timeline svg"); g.remove(); - width = $("#timeline") + width = $("#doc-timeline") .width(); - $("#timeline") + $("#doc-timeline") .append(g); update_timeline(); } diff --git a/ietf/templates/doc/document_bofreq.html b/ietf/templates/doc/document_bofreq.html index 3395403ca..a3621bcc6 100644 --- a/ietf/templates/doc/document_bofreq.html +++ b/ietf/templates/doc/document_bofreq.html @@ -9,7 +9,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} -
+
{% if doc.rev != latest_rev %}
The information below is for an older version of this BOF request.
{% endif %} diff --git a/ietf/templates/doc/document_charter.html b/ietf/templates/doc/document_charter.html index a811f26ab..4e2ab4484 100644 --- a/ietf/templates/doc/document_charter.html +++ b/ietf/templates/doc/document_charter.html @@ -14,7 +14,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} -
+
{% if doc.rev|charter_major_rev != latest_rev|charter_major_rev %}
The information below is for an older diff --git a/ietf/templates/doc/document_chatlog.html b/ietf/templates/doc/document_chatlog.html index 1e88810fe..e57c12c78 100644 --- a/ietf/templates/doc/document_chatlog.html +++ b/ietf/templates/doc/document_chatlog.html @@ -8,7 +8,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} -
+
{% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% endif %} diff --git a/ietf/templates/doc/document_conflict_review.html b/ietf/templates/doc/document_conflict_review.html index 9e9f78b68..c639cac86 100644 --- a/ietf/templates/doc/document_conflict_review.html +++ b/ietf/templates/doc/document_conflict_review.html @@ -10,7 +10,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} -
+
{% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% endif %} diff --git a/ietf/templates/doc/document_draft.html b/ietf/templates/doc/document_draft.html index b38225dd4..90796aa54 100644 --- a/ietf/templates/doc/document_draft.html +++ b/ietf/templates/doc/document_draft.html @@ -27,7 +27,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" with document_html=document_html %} -
+
{% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% else %} diff --git a/ietf/templates/doc/document_material.html b/ietf/templates/doc/document_material.html index fbfe77714..bf25f7b4a 100644 --- a/ietf/templates/doc/document_material.html +++ b/ietf/templates/doc/document_material.html @@ -8,7 +8,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} -
+
{% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% endif %} diff --git a/ietf/templates/doc/document_polls.html b/ietf/templates/doc/document_polls.html index 4f5f2531b..69aefaac1 100644 --- a/ietf/templates/doc/document_polls.html +++ b/ietf/templates/doc/document_polls.html @@ -8,7 +8,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} -
+
{% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% endif %} diff --git a/ietf/templates/doc/document_status_change.html b/ietf/templates/doc/document_status_change.html index 7926fec8e..6b16f6145 100644 --- a/ietf/templates/doc/document_status_change.html +++ b/ietf/templates/doc/document_status_change.html @@ -10,7 +10,7 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} -
+
{% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% endif %}