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