Sha256: 7880cfeb809568a8474055fba879dc354f485cd4223e43a24dac79b6596cd353
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
module Precious module Views class Edit < Layout include Editable include HasPage attr_reader :page, :content # return path set in app.rb not @page.path def path @path end def title "#{@page.title}" end def page_name @name end def header if @header.nil? if page = @page.header @header = page.text_data else @header = false end end @header end def footer if @footer.nil? if page = @page.footer @footer = page.text_data else @footer = false end end @footer end def sidebar if @sidebar.nil? if page = @page.sidebar @sidebar = page.text_data else @sidebar = false end end @sidebar end def is_create_page false end def is_edit_page true end def allow_uploads @allow_uploads end def upload_dest @upload_dest end def format @format = (@page.format || false) if @format.nil? @format.to_s.downcase end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inc_gollum-5.0.1b.pre.rc2 | lib/gollum/views/edit.rb |
inc_gollum-5.0.1b.pre.rc1 | lib/gollum/views/edit.rb |