-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hint for versions not being the latest (#201)
* Add page header * Update versions tempate
- Loading branch information
1 parent
61418c5
commit 82fdb83
Showing
2 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% extends "!page.html" %} | ||
{% block header %} | ||
<div class="pageheader"> | ||
<div align="center"> | ||
<br/> | ||
<table id="topnav-table"> | ||
<tr> | ||
<td valign="middle"> | ||
ROS Resources: | ||
<a href="http://discourse.ros.org/">Discussion Forum</a> | ||
| | ||
<a href="http://status.ros.org/">Service Status</a> | ||
| | ||
<a href="https://robotics.stackexchange.com/">Q&A Robotics Stack Exchange</a> | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block body %} | ||
{% if current_version and latest_version and current_version != latest_version %} | ||
<p> | ||
<strong> | ||
{% if current_version.name|string() in eol_versions %} | ||
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>. | ||
{% endif %} | ||
</strong> | ||
</p> | ||
{% endif %} | ||
{{ super() }} | ||
{% endblock %}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters