diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index cafff3f8f..6b43931f0 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -51,7 +51,7 @@
<%= render partial: "home/upcoming_deadlines" %>
- <%= render partial: "layouts/about_core" %> + <%= render partial: "layouts/about_this_service" %> diff --git a/app/views/layouts/_about_core.html.erb b/app/views/layouts/_about_core.html.erb deleted file mode 100644 index e614e613c..000000000 --- a/app/views/layouts/_about_core.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<% if current_user.present? %> -

About CORE

-<% else %> -

About CORE

-<% end %> -

CORE (COntinuous REcording of Lettings and Sales in Social Housing in England) is a service that collects information about every new social housing letting and sale in England. The data you submit is used to make decisions about funding, regulations, and policies.

-

<%= govuk_link_to "Learn more about statistics on social housing lettings (opens in a new tab)", "https://www.gov.uk/government/collections/rents-lettings-and-tenancies", target: "_blank" %>

diff --git a/app/views/layouts/_about_this_service.html.erb b/app/views/layouts/_about_this_service.html.erb new file mode 100644 index 000000000..cdb2ceb2b --- /dev/null +++ b/app/views/layouts/_about_this_service.html.erb @@ -0,0 +1,7 @@ +<% if current_user.present? %> +

About this service

+<% else %> +

About this service

+<% end %> +

Submit social housing lettings and sales data (CORE) is a service that collects information about every new social housing letting and sale in England. The data you submit is used to make decisions about funding, regulations, and policies.

+

<%= govuk_link_to "Learn more about statistics on social housing lettings (opens in a new tab)", "https://www.gov.uk/government/collections/rents-lettings-and-tenancies", target: "_blank" %>

diff --git a/app/views/start/index.html.erb b/app/views/start/index.html.erb index 9b1cd94ff..7795191d8 100644 --- a/app/views/start/index.html.erb +++ b/app/views/start/index.html.erb @@ -26,6 +26,6 @@
<%= render partial: "layouts/collection_resources" %>
- <%= render partial: "layouts/about_core" %> + <%= render partial: "layouts/about_this_service" %> diff --git a/spec/requests/start_controller_spec.rb b/spec/requests/start_controller_spec.rb index 612c2d768..edca4d7c4 100644 --- a/spec/requests/start_controller_spec.rb +++ b/spec/requests/start_controller_spec.rb @@ -61,9 +61,9 @@ RSpec.describe StartController, type: :request do expect(page).to have_content("Guidance for submitting social housing lettings and sales data (CORE)") end - it "displays about core section" do + it "displays About this service section" do get "/", headers:, params: {} - expect(page).to have_content("About CORE") + expect(page).to have_content("About this service") end end end