Sha256: cf5e483e3b74b6a76b91722bbebeb53ab60d5d75aaafc01b42c5ede53a32c096

Contents?: true

Size: 1.19 KB

Versions: 24

Compression:

Stored size: 1.19 KB

Contents

- if @search.applied_filters?
  .browsing-controls__applied-filters
    %ul.browsing-controls__applied-filters-list
      - @search.filters.each do |filter|
        %li.browsing-controls__applied-filter
          %span #{filter.display_name}: #{filter.current_value}
          = link_to facet_path(filter, filter.current_value), class: 'browsing-controls__applied-remove-link' do
            = inline_svg('workarea/admin/icons/close.svg', class: 'browsing-controls__applied-icon svg-icon svg-icon--small svg-icon--black', title: t('workarea.admin.facets.applied.remove_filter'))

      - @search.facet_selections.each do |facet, values|
        - values.each do |value|
          %li.browsing-controls__applied-filter
            %span= facet_value_display_name(facet, value)
            = link_to facet_path(facet, value), class: 'browsing-controls__applied-remove-link' do
              = inline_svg('workarea/admin/icons/close.svg', class: 'browsing-controls__applied-icon svg-icon svg-icon--small svg-icon--black', title: t('workarea.admin.facets.applied.remove_filter'))

    = link_to t('workarea.admin.facets.applied.clear_all'), (reset_path if show_filters_reset?), class: 'browsing-controls__applied-reset'

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
workarea-admin-3.5.15 app/views/workarea/admin/facets/_applied.html.haml
workarea-admin-3.4.36 app/views/workarea/admin/facets/_applied.html.haml
workarea-admin-3.5.14 app/views/workarea/admin/facets/_applied.html.haml
workarea-admin-3.4.35 app/views/workarea/admin/facets/_applied.html.haml