From 1cc94881d54c83658ccacd61aeb0b8076f947a3e Mon Sep 17 00:00:00 2001 From: Sandra McCann Date: Thu, 24 Aug 2023 12:13:17 -0400 Subject: [PATCH] add community day banner (#334) --- docs/docsite/.templates/banner.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/docsite/.templates/banner.html b/docs/docsite/.templates/banner.html index 666d5b99f7d..9a08ca40104 100644 --- a/docs/docsite/.templates/banner.html +++ b/docs/docsite/.templates/banner.html @@ -15,17 +15,17 @@ } 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 we want something extra, like a survey or Community Day notice */ var extra_banner = '
' + '
' + '

' + - 'We\'re updating the Ansible community mission statement! Participate in our survey and let us know - What does Ansible mean to you? ' + + 'Come join us for Ansible Community Day in Berlin, Germany! See the Call for Proposals to present at this in-person event.' + '

' + '
' + '
'; - */ + // Create a banner if we're not on the official docs site if (location.host == "docs.testing.ansible.com") { document.write('
' + @@ -41,19 +41,22 @@ 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 the latest documentation.'; } else if (startsWithOneOf(current_url_path, ["/ansible/latest/", "/ansible/{{ latest_version }}/"])) { - /* temp extra banner to advertise AnsibeFest2021 */ + /* temp extra banner to advertise something */ banner += extra_banner; msg += 'You are reading the latest (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 Ansible community comparison with Red Hat Ansible Automation Platform. Red Hat also provides a Ansible Automation Platform Life Cycle 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 latest from the version selector to the left for the most recent community version.'; } else if (startsWith(current_url_path, "/ansible/devel/")) { - /* temp extra banner to advertise AnsibleFest2021 */ + /* temp extra banner to advertise something */ banner += extra_banner; msg += '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.'; } else { msg += 'You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the latest (stable) released version.'; + /* temp extra banner to advertise something - this is for testing*/ + banner += extra_banner; + } msg += '

';