Sha256: 3ab9611c10b0ca3a6d5e8d1d3590195105941239825591bba89413b0e474fb16
Contents?: true
Size: 893 Bytes
Versions: 37
Compression:
Stored size: 893 Bytes
Contents
module Spotlight ## # Page title helpers module TitleHelper def curation_page_title(title = nil) page_title t(:'spotlight.curation.header'), title end def configuration_page_title(title = nil) page_title t(:'spotlight.configuration.header'), title end def page_title(section, title = nil) 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 # rubocop:disable Style/AccessorMethodName def set_html_page_title(title = nil) @page_title = strip_tags(t(:'spotlight.html_title', title: title || t(:'.title', default: :'.header'), application_name: application_name)).html_safe end # rubocop:enable Style/AccessorMethodName end end
Version data entries
37 entries across 37 versions & 1 rubygems