Module: Layered::Ui::TitleBarHelper
- Includes:
- BreadcrumbsHelper
- Defined in:
- app/helpers/layered/ui/title_bar_helper.rb
Instance Method Summary collapse
Methods included from BreadcrumbsHelper
#l_ui_breadcrumb_item, #l_ui_breadcrumbs
Instance Method Details
#l_ui_title_bar(title:, breadcrumbs: [], actions: nil, &block) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/helpers/layered/ui/title_bar_helper.rb', line 6 def (title:, breadcrumbs: [], actions: nil, &block) action_content = block_given? ? capture(&block) : actions content_tag(:header, class: "l-ui-title-bar l-ui-container--spread") do safe_join([ content_tag(:div, class: "l-ui-title-bar__content") do safe_join([ (), content_tag(:h1, title, class: "l-ui-title-bar__title") ].compact) end, (action_content) ].compact) end end |