Add has_sidebar/has_footer to editor

Get data-markup-lang attribute working dynamically
This commit is contained in:
Eston Bond
2010-12-04 16:20:49 -08:00
parent 6cc398ae26
commit 57d40c48e3
4 changed files with 35 additions and 3 deletions
+15
View File
@@ -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}"