Sha256: 0f6117a283cc794e314681b88e01c455b5f4804bdf3b8a3360949f85d62b69ed
Contents?: true
Size: 778 Bytes
Versions: 4
Compression:
Stored size: 778 Bytes
Contents
module Protozoa module Views class Create < Layout include Editable 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 def formats super(:markdown) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems