Class: TinyAdmin::Views::Pages::Content

Inherits:
DefaultLayout show all
Defined in:
lib/tiny_admin/views/pages/content.rb

Instance Attribute Summary

Attributes inherited from DefaultLayout

#flash_component, #head_component, #messages, #navbar_component, #options, #title

Attributes inherited from BasicLayout

#content, #params, #widgets

Instance Method Summary collapse

Methods inherited from BasicLayout

#label_for, #update_attributes

Methods included from Utils

#humanize, #params_to_s, #prepare_page, #to_class

Instance Method Details

#view_templateObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/tiny_admin/views/pages/content.rb', line 7

def view_template
  super do
    div(class: 'content') {
      div(class: 'content-data') {
        unsafe_raw(content)
      }

      render TinyAdmin::Views::Components::Widgets.new(widgets)
    }
  end
end