Class: TinyAdmin::Views::Pages::PageNotFound

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

Instance Attribute Summary

Attributes inherited from DefaultLayout

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

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

#titleObject



15
16
17
# File 'lib/tiny_admin/views/pages/page_not_found.rb', line 15

def title
  'Page not found'
end

#view_templateObject



7
8
9
10
11
12
13
# File 'lib/tiny_admin/views/pages/page_not_found.rb', line 7

def view_template
  super do
    div(class: 'page_not_found') {
      h1(class: 'title') { title }
    }
  end
end