app/helpers/redde/admin_helper.rb in redde-0.3.7 vs app/helpers/redde/admin_helper.rb in redde-0.3.8

- old
+ new

@@ -1,7 +1,14 @@ # coding: utf-8 module Redde::AdminHelper + def page_sidebar title = nil, &block + content_for :page_sidebar do + concat content_tag(:div, title, class: 'page-sidebar__title') if title + concat capture(&block) + end + end + def page_header(item = nil, &block) if block_given? content_for(:page_header, content_tag(:div, capture(&block), class: 'page-header')) elsif action_name == 'index' content_for(:page_header, content_tag(:div, render('admin/redde/page_header'), class: 'page-header'))