lib/gollum/frontend/views/create.rb in gollum-2.0.0 vs lib/gollum/frontend/views/create.rb in gollum-2.1.0
- old
+ new
@@ -25,9 +25,14 @@
def has_footer
@footer = (@page.footer || false) if @footer.nil? && @page
!!@footer
end
+ def has_header
+ @header = (@page.header || false) if @header.nil? && @page
+ !!@header
+ end
+
def has_sidebar
@sidebar = (@page.sidebar || false) if @sidebar.nil? && @page
!!@sidebar
end