openstack-manuals/www/templates/series_status.tmpl
Adam Spiers dbd704f335 Provide dropdown menu which allows switching doc release
Currently deprecation badge headers just point back to the root of
the documentation for the latest stable release, so for example the
badge at the top of

    https://docs.openstack.org/latest/user/index.html

just points to

    https://docs.openstack.org/rocky/

It's useful to be able to quickly jump between different releases of
the same documentation page, but currently this requires hand-editing
URLs or many extra manual hops in the navigation trail.  So
automatically generate the links, but only display them if the link
target exists.

Since the main portal page for each release already had a "More
Releases" dropdown, remove that to avoid two dropdowns on the portal
pages.

Change-Id: I2498f00a6c863d078a70289a655b0aa3958325ed
2019-01-24 00:19:22 +00:00

45 lines
1.5 KiB
HTML

{# -*- mode: html -*- #}
{% if SERIES_INFO.status in ('obsolete', 'EOL') %}
<p>
The {{SERIES_TITLE}} release of OpenStack is no longer supported by
the community. For more information about the release, refer to
the <a href="https://releases.openstack.org/{{SERIES}}/">releases
web site</a>.
</p>
{% endif %}
{% if SERIES_INFO.status == 'obsolete' %}
<p>
For documentation, please refer to a newer release. The most
recently released version is
<a href="../{{RELEASED_SERIES}}/">{{RELEASED_SERIES|title}}</a>
and the version in development is
<a href="../{{SERIES_IN_DEVELOPMENT}}">{{SERIES_IN_DEVELOPMENT|title}}</a>.
</p>
{% elif SERIES_INFO.status == 'EOL' %}
<p>
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
<a href="../{{RELEASED_SERIES}}/">{{RELEASED_SERIES|title}}</a> and
the version in development is
<a href="../{{SERIES_IN_DEVELOPMENT}}">{{SERIES_IN_DEVELOPMENT|title}}</a>.
</p>
{% elif SERIES == RELEASED_SERIES %}
<p>This is the latest release. Use the top menu to select a prior release
if needed.</p>
{% elif SERIES_INFO.status == 'maintained' %}
<p>This is not the latest release. Use the top menu to select a different
release if needed.</p>
{% elif SERIES_INFO.status == 'development' %}
<p>This release is currently under development. Use the top menu to select
a different release if needed.</p>
{% endif %}