From 7461f873ef2d5fac3f90238911d2c8a91789018f Mon Sep 17 00:00:00 2001 From: Sandra McCann Date: Tue, 8 Dec 2020 16:46:36 -0500 Subject: [PATCH] add docs survey banner (#72907) (#72909) * add docs survey banner, with date (cherry picked from commit 609879331550a485c787880919c738b2de1eebb1) --- .../_themes/sphinx_rtd_theme/ansible_banner.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html index c07f0e06e13..e3b6a57534b 100644 --- a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html +++ b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html @@ -13,22 +13,29 @@ // Create a banner if we're not the latest version current_url_path = window.location.pathname; if (startsWith(current_url_path, "/ansible/latest/") || startsWith(current_url_path, "/ansible/{{ latest_version }}/")) { + /* temp banner to advertise survey */ + document.write(''); } else if (startsWith(current_url_path, "/ansible/2.9/")) { document.write(''); } else if (startsWith(current_url_path, "/ansible/devel/")) { + /* temp banner to advertise survey */ + document.write(''); + document.write(''); + } else { document.write('