Add has_sidebar/has_footer to editor
Get data-markup-lang attribute working dynamically
This commit is contained in:
Regular → Executable
+15
@@ -16,6 +16,21 @@ module Precious
|
||||
def is_edit_page
|
||||
true
|
||||
end
|
||||
|
||||
def format
|
||||
@format = (@page.format || false) if @format.nil?
|
||||
@format.to_s.downcase
|
||||
end
|
||||
|
||||
def has_footer
|
||||
@footer = (@page.footer || false) if @footer.nil?
|
||||
!!@footer
|
||||
end
|
||||
|
||||
def has_sidebar
|
||||
@sidebar = (@page.sidebar || false) if @sidebar.nil?
|
||||
!!@sidebar
|
||||
end
|
||||
|
||||
def title
|
||||
"#{@page.title}"
|
||||
|
||||
Reference in New Issue
Block a user