Sha256: 05deea765eb2856aa83f7ce4404b44f14ab98236f25248ab819de0095f25166c
Contents?: true
Size: 1.05 KB
Versions: 13
Compression:
Stored size: 1.05 KB
Contents
module Precious 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 allow_uploads @allow_uploads end def upload_dest @upload_dest 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_header @header = (@page.header || false) if @header.nil? && @page !!@header 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 def default_markup Precious::App.settings.default_markup end end end end
Version data entries
13 entries across 13 versions & 2 rubygems