Add AnsibleFest banner (#75476) (#75493)

* add AnsibleFest banner

* fix nit

(cherry picked from commit dc6878007b)
pull/75571/head
Sandra McCann 3 years ago committed by GitHub
parent 9dba4dbf82
commit 362e6c5cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,13 +14,16 @@
}); });
} }
var banner = ''; var banner = '';
var survey_banner = //use extra_banner for when marketing wants something extra, like a survey or AnsibleFest notice
'<div id="latest_survey_banner_id" class="admonition important">' + var extra_banner =
'<div id="latest_extra_banner_id" class="admonition important">' +
'<br>' + '<br>' +
'<p>' + '<p>' +
'Please take our ' + 'You\'re invited to AnsibleFest 2021! ' +
'<a href="https://www.surveymonkey.co.uk/r/2VWVJY3">survey</a> ' + '<p>' +
'to help us improve support for collections and roles in GalaxyNG.' + 'Explore ways to automate, innovate, and accelerate with our free virtual event September 29-30. ' +
'<pr>' +
'<a href="https://reg.ansiblefest.redhat.com/flow/redhat/ansible21/regGenAttendee/login">Register now!</a> ' +
'</p>' + '</p>' +
'<br>' + '<br>' +
'</div>'; '</div>';
@ -39,15 +42,15 @@
if (startsWith(current_url_path, "/ansible-core/")) { if (startsWith(current_url_path, "/ansible-core/")) {
msg += 'You are reading documentation for Ansible Core, which contains no plugins except for those in ansible.builtin. For documentation of the Ansible package, go to <a href="/ansible/latest">the latest documentation</a>.'; msg += 'You are reading documentation for Ansible Core, which contains no plugins except for those in ansible.builtin. For documentation of the Ansible package, go to <a href="/ansible/latest">the latest documentation</a>.';
} else if (startsWithOneOf(current_url_path, ["/ansible/latest/", "/ansible/{{ latest_version }}/"])) { } else if (startsWithOneOf(current_url_path, ["/ansible/latest/", "/ansible/{{ latest_version }}/"])) {
/* temp banner to advertise GalaxyNG survey */ /* temp extra banner to advertise AnsibeFest2021 */
// banner += survey_banner; banner += extra_banner;
msg += '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.'; msg += '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.';
} else if (startsWith(current_url_path, "/ansible/2.9/")) { } 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.'; 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/")) { } else if (startsWith(current_url_path, "/ansible/devel/")) {
/* temp banner to advertise GalaxyNG survey */ /* temp extra banner to advertise AnsibleFest2021 */
// banner += survey_banner; banner += extra_banner;
/* temp banner to advertise survey /* temp banner to advertise survey
important = true; important = true;

Loading…
Cancel
Save