From 36c9519fb193db02a79ccb232d8cbea7c08cc6f2 Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Wed, 3 Mar 2021 16:44:03 +0100 Subject: [PATCH 01/18] don't show the "Edit on GitHub" for the search page --- extensions/odoo_theme/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index a204bc5a3..06568252e 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -92,7 +92,7 @@ {% block body %} {% endblock %} {# Do not show the edition link for pages without content #} - {% if github_link and not 'has_only_toc' in meta %} + {% if github_link and 'has_only_toc' not in meta and pagename != 'search' %} Edit on GitHub {% endif %} From 856365fad9f834c7dd5846abaf1ebdef365bd738 Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Wed, 3 Mar 2021 16:44:27 +0100 Subject: [PATCH 02/18] disable the switcher buttons if there is nothing to switch to --- .../layout_templates/language_switcher.html | 16 +++++++++++++--- .../layout_templates/version_switcher.html | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/extensions/odoo_theme/layout_templates/language_switcher.html b/extensions/odoo_theme/layout_templates/language_switcher.html index 6ec6c21db..d26b063b2 100644 --- a/extensions/odoo_theme/layout_templates/language_switcher.html +++ b/extensions/odoo_theme/layout_templates/language_switcher.html @@ -1,8 +1,18 @@