app/helpers/spotlight/title_helper.rb in blacklight-spotlight-3.5.0.4 vs app/helpers/spotlight/title_helper.rb in blacklight-spotlight-3.6.0.beta1
- old
+ new
@@ -18,10 +18,10 @@
head_content = t(:'spotlight.html_admin_title', section: section, title: title) if section && title
head_content ||= section || title
set_html_page_title(head_content)
html_content = safe_join([
- (section if section.present?),
+ section.presence,
(content_tag(:small, title) if title.present?)
].compact, "\n")
content_tag(:h1, html_content, class: 'page-header')
end