Browse Source

Add about core section

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

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

@ -50,6 +50,8 @@
<%= render partial: "layouts/collection_resources" %>
<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" %>
</div>
</div>
</div>

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

@ -0,0 +1,7 @@
<% 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>

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

@ -24,6 +24,8 @@
<p class="govuk-body">You can <%= govuk_mail_to("dluhc.digital-services@levellingup.gov.uk", "request an account", subject: "CORE: Request a new account") %> if your organisation doesn’t have one.</p>
<p class="govuk-body"><strong><%= govuk_link_to guidance_path do %>Guidance for submitting social housing lettings and sales data (CORE)<% end %></strong><p>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<%= render partial: "layouts/about_core" %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
</div>
</div>

5
spec/requests/start_controller_spec.rb

@ -60,6 +60,11 @@ RSpec.describe StartController, type: :request do
get "/", headers: headers, params: {}
expect(page).to have_content("Guidance for submitting social housing lettings and sales data (CORE)")
end
it "displays about core section" do
get "/", headers:, params: {}
expect(page).to have_content("About CORE")
end
end
end

Loading…
Cancel
Save