From 70a7d29aebdaf5a94fba00ed915ace3561cd8094 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 25 Jul 2017 16:15:46 -0400 Subject: [PATCH] use SERIES_INFO to pick up the message to describe the series status Change-Id: I0297a85c245b0d7711ac49506a74239e403a0838 Signed-off-by: Doug Hellmann --- www/austin/index.html | 16 +----------- www/bexar/index.html | 16 +----------- www/cactus/index.html | 16 +----------- www/diablo/index.html | 16 +----------- www/essex/index.html | 16 +----------- www/folsom/index.html | 16 +----------- www/grizzly/index.html | 16 +----------- www/havana/index.html | 16 +----------- www/icehouse/index.html | 17 +----------- www/juno/index.html | 17 +----------- www/kilo/index.html | 17 +----------- www/liberty/index.html | 17 +----------- www/mitaka/index.html | 2 +- www/newton/index.html | 2 +- www/ocata/index.html | 2 +- www/pike/index.html | 2 +- www/templates/series_status.tmpl | 44 ++++++++++++++++++++++++++++++++ 17 files changed, 60 insertions(+), 188 deletions(-) create mode 100644 www/templates/series_status.tmpl diff --git a/www/austin/index.html b/www/austin/index.html index b4125f2057..bb8b5e5b02 100644 --- a/www/austin/index.html +++ b/www/austin/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/bexar/index.html b/www/bexar/index.html index b4125f2057..bb8b5e5b02 100644 --- a/www/bexar/index.html +++ b/www/bexar/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/cactus/index.html b/www/cactus/index.html index b4125f2057..bb8b5e5b02 100644 --- a/www/cactus/index.html +++ b/www/cactus/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/diablo/index.html b/www/diablo/index.html index b4125f2057..bb8b5e5b02 100644 --- a/www/diablo/index.html +++ b/www/diablo/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/essex/index.html b/www/essex/index.html index b4125f2057..bb8b5e5b02 100644 --- a/www/essex/index.html +++ b/www/essex/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/folsom/index.html b/www/folsom/index.html index b4125f2057..bb8b5e5b02 100644 --- a/www/folsom/index.html +++ b/www/folsom/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/grizzly/index.html b/www/grizzly/index.html index b4125f2057..bb8b5e5b02 100644 --- a/www/grizzly/index.html +++ b/www/grizzly/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/havana/index.html b/www/havana/index.html index cffdc3352f..bb8b5e5b02 100644 --- a/www/havana/index.html +++ b/www/havana/index.html @@ -30,21 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

- -

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- For documentation, please refer to a newer - release. The most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/icehouse/index.html b/www/icehouse/index.html index 807cf9e42c..1e9aa70636 100644 --- a/www/icehouse/index.html +++ b/www/icehouse/index.html @@ -37,22 +37,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- Minimal documentation is still published here to - assist users running this version. For additional - documentation, please refer to a newer release. The - most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/juno/index.html b/www/juno/index.html index ad8bb7660e..3bb6c0382f 100644 --- a/www/juno/index.html +++ b/www/juno/index.html @@ -37,22 +37,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- Minimal documentation is still published here to - assist users running this version. For additional - documentation, please refer to a newer release. The - most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/kilo/index.html b/www/kilo/index.html index 8f97610cf6..9211d198e1 100644 --- a/www/kilo/index.html +++ b/www/kilo/index.html @@ -37,22 +37,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- Minimal documentation is still published here to - assist users running this version. For additional - documentation, please refer to a newer release. The - most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/liberty/index.html b/www/liberty/index.html index d9067f415d..4522d03485 100644 --- a/www/liberty/index.html +++ b/www/liberty/index.html @@ -37,22 +37,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

- The {{SERIES_TITLE}} release of OpenStack is no - longer supported by the community. For more - information about the release, refer to - the releases - web site. -

-

- Minimal documentation is still published here to - assist users running this version. For additional - documentation, please refer to a newer release. The - most recently released version is - {{RELEASED_SERIES|title}} - and the version in development is - {{SERIES_IN_DEVELOPMENT|title}}. -

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/mitaka/index.html b/www/mitaka/index.html index 475456a764..90725e2167 100644 --- a/www/mitaka/index.html +++ b/www/mitaka/index.html @@ -30,7 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

This is not the latest release. Use the menu to select a different release if needed.

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/newton/index.html b/www/newton/index.html index 0ff099b549..eb2233dbfc 100644 --- a/www/newton/index.html +++ b/www/newton/index.html @@ -30,7 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

This is not the latest release. Use the menu to select a different release if needed.

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/ocata/index.html b/www/ocata/index.html index 61b054776d..8f9571f346 100644 --- a/www/ocata/index.html +++ b/www/ocata/index.html @@ -30,7 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

This is the latest release. Use the menu to select a prior release if needed.

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/pike/index.html b/www/pike/index.html index 4faaf8c6e2..6eacc1e6e1 100644 --- a/www/pike/index.html +++ b/www/pike/index.html @@ -30,7 +30,7 @@

Documentation for {{SERIES_TITLE}} ({{SERIES_INFO.date}})

-

This is the latest release. Use the menu to select a prior release if needed.

+ {% include "templates/series_status.tmpl" %}
{% include 'templates/dropdown_releases_and_languages.tmpl' %}
diff --git a/www/templates/series_status.tmpl b/www/templates/series_status.tmpl new file mode 100644 index 0000000000..86e8e6d336 --- /dev/null +++ b/www/templates/series_status.tmpl @@ -0,0 +1,44 @@ +{# -*- mode: html -*- #} + +{% if SERIES_INFO.status in ('obsolete', 'EOL') %} +

+ The {{SERIES_TITLE}} release of OpenStack is no longer supported by + the community. For more information about the release, refer to + the releases + web site. +

+{% endif %} + +{% if SERIES_INFO.status == 'obsolete' %} +

+ For documentation, please refer to a newer release. The most + recently released version is + {{RELEASED_SERIES|title}} + and the version in development is + {{SERIES_IN_DEVELOPMENT|title}}. +

+ +{% elif SERIES_INFO.status == 'EOL' %} +

+ Minimal documentation is still published here to + assist users running this version. For additional + documentation, please refer to a newer release. The + most recently released version is + {{RELEASED_SERIES|title}} and + the version in development is + {{SERIES_IN_DEVELOPMENT|title}}. +

+ +{% elif SERIES == RELEASED_SERIES %} +

This is the latest release. Use the menu to select a prior release + if needed.

+ +{% elif SERIES_INFO.status == 'maintained' %} +

This is not the latest release. Use the menu to select a different + release if needed.

+ +{% elif SERIES_INFO.status == 'development' %} +

This release is currently under development. Use the menu to select + a different release if needed.

+ +{% endif %}