Sha256: 8e46d7de680dabf450bdd52d4855b348382803c2fd1b720fe33f7c963ad0db36
Contents?: true
Size: 630 Bytes
Versions: 57
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true module EacRailsBase0 module PanelDefaultHelper def panel_default(title, &block) content_tag(:div, class: 'container') do content_tag(:div, class: 'panel panel-default') do panel_heading(title) << panel_body(block) end end end private def panel_heading(title) content_tag(:div, class: 'panel-heading') do content_tag(:h2, class: 'panel-title') do title end end end def panel_body(block) content_tag(:div, class: 'panel-body') do block ? block.call : '' end end end end
Version data entries
57 entries across 57 versions & 1 rubygems