* clarify upstream release status of 2.10
(cherry picked from commit d76f85208d
)
This commit is contained in:
parent
10871f3246
commit
31ab3d8a64
1 changed files with 10 additions and 4 deletions
|
@ -13,15 +13,21 @@
|
||||||
// Create a banner if we're not the latest version
|
// Create a banner if we're not the latest version
|
||||||
current_url_path = window.location.pathname;
|
current_url_path = window.location.pathname;
|
||||||
if (startsWith(current_url_path, "/ansible/latest/") || startsWith(current_url_path, "/ansible/{{ latest_version }}/")) {
|
if (startsWith(current_url_path, "/ansible/latest/") || startsWith(current_url_path, "/ansible/{{ latest_version }}/")) {
|
||||||
// no banner for latest release
|
document.write('<div id="banner_id" class="admonition caution">');
|
||||||
/* temp banner to advertise AnsibleFest
|
document.write('<p>You are reading the latest community version of the Ansible documentation. Red Hat subscribers, select <b>2.9</b> in the version selection to the left for the most recent Red Hat release.</p>');
|
||||||
|
document.write('</div>');
|
||||||
|
|
||||||
|
/* temp banner to advertise AnsibleFest
|
||||||
document.write('<div id="banner_id" class="admonition important">');
|
document.write('<div id="banner_id" class="admonition important">');
|
||||||
document.write('<p><a href="https://www.ansible.com/ansiblefest?sc_cid=7013a000002gyPxAAI">AnsibleFest</a> is going virtual with two days of expert speakers, live demos and hands-on labs Oct 13-14!</p>');
|
document.write('<p><a href="https://www.ansible.com/ansiblefest?sc_cid=7013a000002gyPxAAI">AnsibleFest</a> is going virtual with two days of expert speakers, live demos and hands-on labs Oct 13-14!</p>');
|
||||||
document.write('</div>'); */
|
document.write('</div>'); */
|
||||||
|
} else if (startsWith(current_url_path, "/ansible/2.9/")) {
|
||||||
|
document.write('<div id="banner_id" class="admonition caution">');
|
||||||
|
document.write('<p>You are reading the latest Red Hat released version of the Ansible documentation. Community users can use this, or select any version in version selection to the left, including <b>latest</b> for the most recent community version.</p>');
|
||||||
|
document.write('</div>');
|
||||||
} else if (startsWith(current_url_path, "/ansible/devel/")) {
|
} else if (startsWith(current_url_path, "/ansible/devel/")) {
|
||||||
document.write('<div id="banner_id" class="admonition caution">');
|
document.write('<div id="banner_id" class="admonition caution">');
|
||||||
document.write('<p>You are reading the *devel* version of the Ansible documentation - this version is not guaranteed stable. Use the version selection to the left if you want the latest stable released version.</p>');
|
document.write('<p>You are reading the <b>devel</b> version of the Ansible documentation - this version is not guaranteed stable. Use the version selection to the left if you want the latest stable released version.</p>');
|
||||||
document.write('</div>');
|
document.write('</div>');
|
||||||
} else {
|
} else {
|
||||||
document.write('<div id="banner_id" class="admonition caution">');
|
document.write('<div id="banner_id" class="admonition caution">');
|
||||||
|
|
Loading…
Reference in a new issue