Sha256: bdec6b85716a1c14a78c8776ea0bf123b4cf2acc6193563996114b89253bc9df
Contents?: true
Size: 722 Bytes
Versions: 16
Compression:
Stored size: 722 Bytes
Contents
module ActiveAdmin module Views module Pages # Acts as a standard rails Layout for use when logged # out or when rendering custom actions. class Layout < Base def title assigns[:page_title] || I18n.t("active_admin.#{params[:action]}", :default => params[:action].to_s.titleize) end # Render the content_for(:layout) into the main content area def main_content content_for_layout = content_for(:layout) if content_for_layout.is_a?(Arbre::HTML::Element) current_dom_context.add_child content_for_layout.children else text_node content_for_layout end end end end end end
Version data entries
16 entries across 16 versions & 3 rubygems