diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index d5ce190c..e155d70e 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -1,13 +1,4 @@ class SettingsController < ApplicationController - def show - if template_valid? - track('static_page') - render template - else - render 'errors/not_found' - end - end - def create set_cookie_pref diff --git a/app/views/errors/not_found.html.slim b/app/views/errors/not_found.html.slim index 935e1d89..1ce8978c 100644 --- a/app/views/errors/not_found.html.slim +++ b/app/views/errors/not_found.html.slim @@ -3,10 +3,10 @@ h1.govuk-heading-xl Page not found p.govuk-body - | Use this link to go back to the homepage + | Use this link to go back to the homepage = govuk_link_to 'Help for early years providers', root_path p.govuk-body - | If the web address is correct or you selected a link or button, contact + | If the web address is correct or you selected a link or button, contact = govuk_link_to 'help_for_early_years_providers@digital.education.gov.uk', 'mailto:help_for_early_years_providers@digital.education.gov.uk' - | to report a fault about the service. + | to report a fault about the service. diff --git a/app/views/pages/default.html.slim b/app/views/pages/default.html.slim index 92598b01..5ead6ece 100644 --- a/app/views/pages/default.html.slim +++ b/app/views/pages/default.html.slim @@ -21,7 +21,7 @@ .govuk-grid-column-full = m(page.body) -= render 'shared/citation' +/ = render 'shared/citation' - if page.content_list.present? = render 'shared/back_to_top' diff --git a/app/views/pages/index.html.slim b/app/views/pages/index.html.slim index a0a9146e..360457af 100644 --- a/app/views/pages/index.html.slim +++ b/app/views/pages/index.html.slim @@ -12,7 +12,7 @@ = m(page.body) -if page.slug == 'cookie-policy' +- if page.slug == 'cookie-policy' = render 'settings/cookie_policy' = render 'shared/ctas' diff --git a/app/views/pages/side_nav.slim b/app/views/pages/side_nav.slim index cd6ae171..54a9440d 100644 --- a/app/views/pages/side_nav.slim +++ b/app/views/pages/side_nav.slim @@ -34,7 +34,7 @@ = m(page.body) - if page.content_list.present? - = render 'shared/citation' + / = render 'shared/citation' = render 'shared/back_to_top' = render 'shared/print'