Skip to content

Commit

Permalink
add comparison link to banner (#232) (#282)
Browse files Browse the repository at this point in the history
* add comparison link to banner

Co-authored-by: Don Naro <[email protected]>
(cherry picked from commit 44ad1cf)

Co-authored-by: Sandra McCann <[email protected]>
  • Loading branch information
patchback[bot] and samccann authored Aug 11, 2023
1 parent 12ecde0 commit a5d406c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/docsite/.templates/banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
var banner = '';
var extra_banner = '';
/*use extra_banner for when marketing wants something extra, like a survey or AnsibleFest notice */
/*use extra_banner for when marketing wants something extra, like a survey or AnsibleFest notice
var extra_banner =
'<div id="latest_extra_banner_id" class="admonition important">' +
'<br>' +
Expand All @@ -25,6 +25,7 @@
'</p>' +
'<br>' +
'</div>';
*/
// Create a banner if we're not on the official docs site
if (location.host == "docs.testing.ansible.com") {
document.write('<div id="testing_banner_id" class="admonition important">' +
Expand All @@ -43,7 +44,7 @@
/* temp extra banner to advertise AnsibeFest2021 */
banner += extra_banner;

msg += 'You are reading the <b>latest</b> (stable) community version of the Ansible documentation. If you are a Red Hat customer, refer to the <a href="https://access.redhat.com/support/policy/updates/ansible-automation-platform">Ansible Automation Platform Life Cycle</a> page for subscription details.';
msg += 'You are reading the <b>latest</b> (stable) community version of the Ansible documentation. For more detail on the difference between Ansible community projects and Red Hat supported products, refer to the <a href="https://www.ansible.com/compare">Ansible community comparison with Red Hat Ansible Automation Platform</a>. Red Hat also provides a <a href="https://access.redhat.com/support/policy/updates/ansible-automation-platform">Ansible Automation Platform Life Cycle</a> page for subscriptions.';
} else if (startsWith(current_url_path, "/ansible/2.9/")) {
msg += 'You are reading the latest Red Hat released version of the Ansible documentation. Community users can use this version, or select <b>latest</b> from the version selector to the left for the most recent community version.';
} else if (startsWith(current_url_path, "/ansible/devel/")) {
Expand Down

0 comments on commit a5d406c

Please sign in to comment.