Skip to content

Commit

Permalink
Merge pull request #857 from DaanVanVugt/feature/date_added_filter
Browse files Browse the repository at this point in the history
Make list with date_added as filter option configurable
  • Loading branch information
fbacall authored Jun 26, 2023
2 parents bdc3a5e + 0e12c0c commit 35eb405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/search/common/_facet_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Variable that should be available
</h4>
</li>

<% if ['Event', 'Material'].include?(resource_type.name) %>
<% if TeSS::Config.facets_max_age_list.include?(resource_type.name) %>
<%= render partial: 'search/common/facet_sidebar_max_age' %>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions config/tess.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ default: &default
# events: [content_provider, keywords, event_types, ...]
# materials:
# trainers:
facets_max_age_list: ['Event', 'Material']
announcement_message:
prevent_robot_indexing: false
require_cookie_consent: true
Expand Down

0 comments on commit 35eb405

Please sign in to comment.