app/builders/spotlight/bootstrap_breadcrumbs_builder.rb in blacklight-spotlight-3.2.0 vs app/builders/spotlight/bootstrap_breadcrumbs_builder.rb in blacklight-spotlight-3.3.0
- old
+ new
@@ -23,17 +23,17 @@
def render_element(element)
current = @context.current_page?(compute_path(element)) || element.options&.dig(:current)
html_class = 'active' if current
- @context.content_tag(:li, class: "breadcrumb-item #{html_class}") do
+ @context.content_tag(:li, class: "breadcrumb-item truncated-value #{html_class}") do
@context.link_to_unless(current, element_label(element), compute_path(element), element.options&.except(:current))
end
end
private
def element_label(element)
- @context.content_tag(:span, class: 'truncated-value') { compute_name(element) }
+ @context.content_tag(:span) { compute_name(element) }
end
end
end