Class: Protozoa::Views::Edit

Inherits:
Layout
  • Object
show all
Includes:
Editable
Defined in:
lib/amiba/frontend/views/edit.rb

Instance Attribute Summary collapse

Attributes inherited from Layout

#name

Instance Method Summary collapse

Methods included from Editable

#categories

Methods inherited from Layout

#edit_url, #escaped_name, #view_url

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content


6
7
8
# File 'lib/amiba/frontend/views/edit.rb', line 6

def content
  @content
end

#pageObject (readonly)

Returns the value of attribute page


6
7
8
# File 'lib/amiba/frontend/views/edit.rb', line 6

def page
  @page
end

Instance Method Details

#formatObject


24
25
26
27
# File 'lib/amiba/frontend/views/edit.rb', line 24

def format
  @format = (@page.format || false) if @format.nil?
  @format.to_s.downcase
end

#is_create_pageObject


16
17
18
# File 'lib/amiba/frontend/views/edit.rb', line 16

def is_create_page
  false
end

#is_edit_pageObject


20
21
22
# File 'lib/amiba/frontend/views/edit.rb', line 20

def is_edit_page
  true
end

#page_nameObject


12
13
14
# File 'lib/amiba/frontend/views/edit.rb', line 12

def page_name
  "#{@page.title}"
end

#titleObject


8
9
10
# File 'lib/amiba/frontend/views/edit.rb', line 8

def title
  "#{@page.title}"
end