Class: Protozoa::Views::Edit
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
#content ⇒ Object
Returns the value of attribute content.
6
7
8
|
# File 'lib/amiba/frontend/views/edit.rb', line 6
def content
@content
end
|
#page ⇒ Object
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
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_page ⇒ Object
16
17
18
|
# File 'lib/amiba/frontend/views/edit.rb', line 16
def is_create_page
false
end
|
#is_edit_page ⇒ Object
20
21
22
|
# File 'lib/amiba/frontend/views/edit.rb', line 20
def is_edit_page
true
end
|
#page_name ⇒ Object
12
13
14
|
# File 'lib/amiba/frontend/views/edit.rb', line 12
def page_name
"#{@page.title}"
end
|
#title ⇒ Object
8
9
10
|
# File 'lib/amiba/frontend/views/edit.rb', line 8
def title
"#{@page.title}"
end
|