Skip to content

Commit 22a941d

Browse files
Use same filter as the jobseekers jobs page
1 parent 4963a7e commit 22a941d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/components/dashboard_component/dashboard_component.html.slim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
.govuk-grid-row class="govuk-!-margin-bottom-7"
2020
- if @vacancies.many?
2121
.govuk-grid-column-full
22-
= render SortComponent.new(path: method(:organisation_jobs_with_type_path), sort: @sort, url_params: { type: @selected_type }, display_type: "inline-select")
22+
div class="sort-container"
23+
div class="left"
24+
- sort_by_value = @sort.options.find { |option| option.by == @sort.by }.display_name.downcase
25+
- sorted_by_string = t("jobs.sort_by.jobs_page_label", sort_by_value: sort_by_value)
26+
h2 class="govuk-heading-m govuk-!-margin-bottom-3 govuk-!-margin-top-1" = sorted_by_string
27+
div class="right"
28+
= render SortComponent.new(path: method(:organisation_jobs_with_type_path), sort: @sort, url_params: { type: @selected_type }, display_type: "inline-select")
2329

2430
- if @organisation.school_group?
2531
.govuk-grid-column-one-third-at-desktop class="govuk-!-margin-bottom-4"

0 commit comments

Comments
 (0)