Browse Source

Update content

pull/2124/head
Kat 2 years ago
parent
commit
41aac63490
  1. 2
      app/views/home/index.html.erb
  2. 7
      app/views/layouts/_about_core.html.erb
  3. 7
      app/views/layouts/_about_this_service.html.erb
  4. 2
      app/views/start/index.html.erb
  5. 4
      spec/requests/start_controller_spec.rb

2
app/views/home/index.html.erb

@ -51,7 +51,7 @@
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<%= render partial: "home/upcoming_deadlines" %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<%= render partial: "layouts/about_core" %>
<%= render partial: "layouts/about_this_service" %>
</div>
</div>
</div>

7
app/views/layouts/_about_core.html.erb

@ -1,7 +0,0 @@
<% if current_user.present? %>
<h1 class="govuk-heading-l govuk-!-width-two-thirds">About CORE</h1>
<% else %>
<h2 class="govuk-heading-m govuk-!-width-two-thirds">About CORE</h2>
<% end %>
<p class="govuk-body">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.</p>
<p class="govuk-body"><%= 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" %></p>

7
app/views/layouts/_about_this_service.html.erb

@ -0,0 +1,7 @@
<% if current_user.present? %>
<h1 class="govuk-heading-l govuk-!-width-two-thirds">About this service</h1>
<% else %>
<h2 class="govuk-heading-m govuk-!-width-two-thirds">About this service</h2>
<% end %>
<p class="govuk-body">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.</p>
<p class="govuk-body"><%= 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" %></p>

2
app/views/start/index.html.erb

@ -26,6 +26,6 @@
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<%= render partial: "layouts/collection_resources" %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<%= render partial: "layouts/about_core" %>
<%= render partial: "layouts/about_this_service" %>
</div>
</div>

4
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

Loading…
Cancel
Save