Sha256: 0b3b8da0e2609e0d6ea285031847eaeaddead0b1c65bf040f40a5cc94db6ad80

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

module Protozoa
  module Views
    class Edit < Layout
      include Editable

      attr_reader :page, :content

      def title
        "#{@page.title}"
      end

      def page_name
        "#{@page.title}"
      end

      def is_create_page
        false
      end

      def is_edit_page
        true
      end

      def format
        @format = (@page.format || false) if @format.nil?
        @format.to_s.downcase
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
amiba-1.0.2 lib/amiba/frontend/views/edit.rb
amiba-1.0.1 lib/amiba/frontend/views/edit.rb
amiba-1.0.0 lib/amiba/frontend/views/edit.rb
amiba-0.0.9 lib/amiba/frontend/views/edit.rb