Sha256: 956169fde65e3a2865b138c6a9a5f5f7a50572eeff4c4bba9fab5c790e505f4f

Contents?: true

Size: 536 Bytes

Versions: 49

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  # Override the regular constraint layout to remove any interactive features so this can
  # be treated as quasi-plain text
  class SearchHistoryConstraintLayoutComponent < Blacklight::ConstraintLayoutComponent
    def call
      label = tag.span(t('blacklight.search.filters.label', label: @label), class: 'filter-name') if @label.present?
      value = tag.span(@value, class: 'filter-values')

      tag.span(safe_join([label, value].compact), class: 'constraint')
    end
  end
end

Version data entries

49 entries across 48 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.40.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.6.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.5.1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.5.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.39.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.4.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.38.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.3.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.2.2 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.2.1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.2.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.37.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.36.2 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.36.1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.36.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.35.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.1.0 app/components/blacklight/search_history_constraint_layout_component.rb