From 3c8a7cdebc558205b1270bb969272f82f4400c51 Mon Sep 17 00:00:00 2001
From: Elod Illes
Date: Wed, 21 Feb 2024 15:49:59 +0100
Subject: [PATCH] Add Unmaintained badge
Unmaintained state does not have a badge in the web templates, but now
Extanded Maintenance was replaced by Unmaintained process (see
Technical Committee's resolution [1] for details) so this patch adds
a badge for it.
[1] https://governance.openstack.org/tc/resolutions/20230724-unmaintained-branches.html
Change-Id: Iedefd4958572c92bed5177ed8b78771ddc8334dc
---
www/static/common/css/deprecated-badge.css | 5 +++++
www/templates/deprecated_badge.tmpl | 3 +++
www/templates/project_deprecated_badge.tmpl | 5 +++++
www/templates/series_status.tmpl | 4 ++++
4 files changed, 17 insertions(+)
diff --git a/www/static/common/css/deprecated-badge.css b/www/static/common/css/deprecated-badge.css
index 83350b6d5b..9444806000 100644
--- a/www/static/common/css/deprecated-badge.css
+++ b/www/static/common/css/deprecated-badge.css
@@ -78,6 +78,7 @@ a.deprecated-badge-right {
.deprecated-badge-maintained,
.deprecated-badge-extended-maintenance,
+.deprecated-badge-unmaintained,
.deprecated-badge-development {
background: #eaeaea;
}
@@ -107,6 +108,10 @@ a.deprecated-badge-right {
color: #000000 !important;
}
+.deprecated-badge-unmaintained .deprecated-badge-close-button{
+ color: #000000 !important;
+}
+
.deprecated-badge-development .deprecated-badge-close-button{
color: #000000 !important;
}
diff --git a/www/templates/deprecated_badge.tmpl b/www/templates/deprecated_badge.tmpl
index 7f248c95dc..b405353cff 100644
--- a/www/templates/deprecated_badge.tmpl
+++ b/www/templates/deprecated_badge.tmpl
@@ -26,6 +26,9 @@
which is no longer supported by the community. The current supported release is {{RELEASED_SERIES.capitalize()}}.
{% elif SERIES == RELEASED_SERIES %}
which is the current supported release.
+ {% elif SERIES_INFO.status == 'unmaintained' %}
+ which is unmaintained. The current supported
+ release is {{RELEASED_SERIES.capitalize()}}.
{% elif SERIES_INFO.status == 'extended-maintenance' %}
which is in extended maintenance, but old. The current supported
release is {{RELEASED_SERIES.capitalize()}}.
diff --git a/www/templates/project_deprecated_badge.tmpl b/www/templates/project_deprecated_badge.tmpl
index 74aff77ec8..85fbbfde1f 100644
--- a/www/templates/project_deprecated_badge.tmpl
+++ b/www/templates/project_deprecated_badge.tmpl
@@ -36,6 +36,11 @@
This is in extended maintenance and not the current release. The current supported
release is {{RELEASED_SERIES.capitalize()}}.
+ {% elif SERIES_INFO.status == 'unmaintained' %}
+
+ This is unmaintained and not the current release. The current supported
+ release is {{RELEASED_SERIES.capitalize()}}.
+
{% elif SERIES_INFO.status == 'development' %}
This release is under development. The current supported release is {{RELEASED_SERIES.capitalize()}}.
diff --git a/www/templates/series_status.tmpl b/www/templates/series_status.tmpl
index 79cde8cb18..9da07b4119 100644
--- a/www/templates/series_status.tmpl
+++ b/www/templates/series_status.tmpl
@@ -37,6 +37,10 @@
This is an old release in extended maintenance. Use the top menu to
select a different release if needed.
+{% elif SERIES_INFO.status == 'unmaintained' %}
+This is an old unmaintained release. Use the top menu to
+ select a different release if needed.
+
{% elif SERIES_INFO.status == 'maintained' %}
This is not the latest release. Use the top menu to select a different
release if needed.