Skip to content

Commit

Permalink
Remove component and put the call into the view
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-stefano committed Dec 13, 2024
1 parent 3686f9a commit 23e857d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 68 deletions.
1 change: 0 additions & 1 deletion app/components/find/results_summary/view.html.erb

This file was deleted.

18 changes: 0 additions & 18 deletions app/components/find/results_summary/view.rb

This file was deleted.

6 changes: 3 additions & 3 deletions app/views/find/v2/results/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= content_for :page_title, Find::ResultsSummary::View.new(courses_count: @courses_count).title %>
<%= content_for :page_title, t(".page_title", count: @courses_count, formatted_count: number_with_delimiter(@courses_count)) %>

<h1 class="govuk-heading-xl" data-qa="heading">
<%= render Find::ResultsSummary::View.new(courses_count: @courses_count) %>
<h1 class="govuk-heading-xl">
<%= t(".page_title", count: @courses_count, formatted_count: number_with_delimiter(@courses_count)) %>
</h1>

<div class="app-filter-layout">
Expand Down
12 changes: 7 additions & 5 deletions config/locales/find.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,13 @@ en:
label:
one: '%{count} mile'
other: '%{count} miles'
results_summary:
title:
zero: "No courses found"
one: "1 course found"
other: "%{formatted_count} courses found"
v2:
results:
index:
page_title:
zero: "No courses found"
one: "1 course found"
other: "%{formatted_count} courses found"
helpers:
legend:
courses_query_filters:
Expand Down
41 changes: 0 additions & 41 deletions spec/components/find/results_summary/view_spec.rb

This file was deleted.

0 comments on commit 23e857d

Please sign in to comment.