diff --git a/app/presenters/content_item_presenter.rb b/app/presenters/content_item_presenter.rb index 848b58773..3fcb20758 100644 --- a/app/presenters/content_item_presenter.rb +++ b/app/presenters/content_item_presenter.rb @@ -118,6 +118,10 @@ def show_default_breadcrumbs? true end + def exclude_main_wrapper? + false + end + private def voting_is_open? diff --git a/app/presenters/html_publication_presenter.rb b/app/presenters/html_publication_presenter.rb index 6bfebdbf6..d9e430ba4 100644 --- a/app/presenters/html_publication_presenter.rb +++ b/app/presenters/html_publication_presenter.rb @@ -48,6 +48,10 @@ def full_path(request) request.base_url + request.path end + def exclude_main_wrapper? + true + end + private def public_timestamp diff --git a/app/presenters/worldwide_corporate_information_page_presenter.rb b/app/presenters/worldwide_corporate_information_page_presenter.rb index d305f5d84..1c7242054 100644 --- a/app/presenters/worldwide_corporate_information_page_presenter.rb +++ b/app/presenters/worldwide_corporate_information_page_presenter.rb @@ -21,6 +21,10 @@ def sponsoring_organisations worldwide_organisation&.sponsoring_organisations end + def exclude_main_wrapper? + true + end + private def show_contents_list? diff --git a/app/presenters/worldwide_office_presenter.rb b/app/presenters/worldwide_office_presenter.rb index d65d7fc63..46861c3f3 100644 --- a/app/presenters/worldwide_office_presenter.rb +++ b/app/presenters/worldwide_office_presenter.rb @@ -30,6 +30,10 @@ def sponsoring_organisations worldwide_organisation&.sponsoring_organisations end + def exclude_main_wrapper? + true + end + private def show_contents_list? diff --git a/app/presenters/worldwide_organisation_presenter.rb b/app/presenters/worldwide_organisation_presenter.rb index 667d7aea4..ce253c0a0 100644 --- a/app/presenters/worldwide_organisation_presenter.rb +++ b/app/presenters/worldwide_organisation_presenter.rb @@ -123,6 +123,10 @@ def sponsoring_organisations content_item.dig("links", "sponsoring_organisations") || [] end + def exclude_main_wrapper? + true + end + private def office(office, contact) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 89be175f3..c3cf21a70 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -31,7 +31,7 @@ <%= yield :header %> -
+
<%= yield :main %>