Skip to content

Commit

Permalink
Add EOL banner to eloquent (#990)
Browse files Browse the repository at this point in the history
* Add EOL banner to eloquent

Signed-off-by: maryaB-osr <[email protected]>

* Change the wording for version banners (#991)

* Change the wording for version banners

Signed-off-by: maryaB-osr <[email protected]>

* Apply suggestions from code review

Co-authored-by: Chris Lalancette <[email protected]>

* add commas to review change

Signed-off-by: maryaB-osr <[email protected]>

Co-authored-by: Chris Lalancette <[email protected]>

Co-authored-by: Chris Lalancette <[email protected]>
  • Loading branch information
maryaB-osr and clalancette authored Jan 12, 2021
1 parent 3fdaaa5 commit 27f5079
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/_templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
{% if current_version and latest_version and current_version != latest_version %}
<p>
<strong>
{% if current_version.is_released %}
You're reading an old version of this documentation.
{% if current_version.name|string() == 'eloquent' %}
You're reading the documentation for a version of ROS 2 that has reached its EOL (end-of-life), and is no longer officially supported.
If you want up-to-date information, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name | title }}</a>.
{% elif current_version.is_released %}
You're reading the documentation for an older, but still supported, version of ROS 2.
For information on the latest version, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name | title }}</a>.
{% else %}
You're reading the documentation for a development version.
For the latest released version, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name | title }}</a>.
Expand Down

0 comments on commit 27f5079

Please sign in to comment.