|
|
|
|
@ -93,8 +93,12 @@ module FiltersHelper
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def collection_year_options |
|
|
|
|
if FeatureToggle.collection_2024_2025_year_enabled? |
|
|
|
|
{ "2024": "2024/25", "2023": "2023/24", "2022": "2022/23" } |
|
|
|
|
else |
|
|
|
|
{ "2023": "2023/24", "2022": "2022/23", "2021": "2021/22" } |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def filters_applied_text(filter_type) |
|
|
|
|
applied_filters_count(filter_type).zero? ? "No filters applied" : "#{pluralize(applied_filters_count(filter_type), 'filter')} applied" |
|
|
|
|
@ -174,4 +178,8 @@ private
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def year_combo(year) |
|
|
|
|
"#{year}/#{year - 2000 + 1}" |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|