app/helpers/spotlight/title_helper.rb in blacklight-spotlight-0.1.0 vs app/helpers/spotlight/title_helper.rb in blacklight-spotlight-0.2.0
- old
+ new
@@ -12,10 +12,10 @@
set_html_page_title(t(:'spotlight.html_admin_title', section: section, title: title || t(:'.title', default: :'.header')))
content_tag(:h1, safe_join([section, content_tag(:small, title || t(:'.header'))], "\n"), class: "page-header")
end
def set_html_page_title title = nil
- @page_title = t(:'spotlight.html_title', title: title || t(:'.title', default: :'.header'), application_name: application_name)
+ @page_title = strip_tags(t(:'spotlight.html_title', title: title || t(:'.title', default: :'.header'), application_name: application_name))
end
def header_with_count *args
title, count = if args.length == 2
args
\ No newline at end of file