lib/gollum/frontend/views/create.rb in gollum-1.1.1 vs lib/gollum/frontend/views/create.rb in gollum-1.2.0

- old
+ new

@@ -6,9 +6,32 @@ attr_reader :page, :name def title "Create a new page" end + + def is_create_page + true + end + + def is_edit_page + false + end + + def format + @format = (@page.format || false) if @format.nil? && @page + @format.to_s.downcase + end + + def has_footer + @footer = (@page.footer || false) if @footer.nil? && @page + !!@footer + end + + def has_sidebar + @sidebar = (@page.sidebar || false) if @sidebar.nil? && @page + !!@sidebar + end def page_name @name.gsub('-', ' ') end