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 survey_banner =
'<div id="latest_survey_banner_id" class="admonition important">' +
//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>' +
'<p>' +
'Please take our ' +
'<a href="https://www.surveymonkey.co.uk/r/2VWVJY3">survey</a> ' +
'to help us improve support for collections and roles in GalaxyNG.' +
'You\'re invited to AnsibleFest 2021! ' +
'<p>' +
'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>' +
'<br>' +
'</div>';
@ -39,15 +42,15 @@
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>.';
} else if (startsWithOneOf(current_url_path, ["/ansible/latest/", "/ansible/{{ latest_version }}/"])) {
/* temp banner to advertise GalaxyNG survey */
// banner += survey_banner;
/* temp extra banner to advertise AnsibeFest2021 */
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.';
} 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/")) {
/* temp banner to advertise GalaxyNG survey */
// banner += survey_banner;
/* temp extra banner to advertise AnsibleFest2021 */
banner += extra_banner;
/* temp banner to advertise survey
important = true;

Loading…
Cancel
Save