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-7.34.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta8 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta7 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta6 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta5 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.33.1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta4 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta3 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta2 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-8.0.0.beta1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.33.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.32.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.31.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.30.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.29.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.28.0 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.27.1 app/components/blacklight/search_history_constraint_layout_component.rb
blacklight-7.27.0 app/components/blacklight/search_history_constraint_layout_component.rb