Sha256: 1eb2979eb743b5bc24461422adb5d30ac01db743a4dd028fd31089c75712ab17

Contents?: true

Size: 571 Bytes

Versions: 7

Compression:

Stored size: 571 Bytes

Contents

module Georgia
  module PagesHelper

    def page_actions_tag page, revision=nil, options={}
      revision ||= page.current_revision
      Georgia::PageActionsPresenter.new(self, page, revision, options)
    end

    def button_to_settings
      link_to icon_tag('cogs'), [:settings, @page], class: 'btn btn-default'
    end

    def page_url_minus_slug
      @page_full_url ||= (Georgia.url + @page.url).gsub(@page.slug, '')
    end

    def warning_message page, revision, options={}
      Georgia::WarningMessage.new(self, page, revision, options)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
georgia-0.7.6 app/helpers/georgia/pages_helper.rb
georgia-0.7.5 app/helpers/georgia/pages_helper.rb
georgia-0.7.4 app/helpers/georgia/pages_helper.rb
georgia-0.7.3 app/helpers/georgia/pages_helper.rb
georgia-0.7.2 app/helpers/georgia/pages_helper.rb
georgia-0.7.1 app/helpers/georgia/pages_helper.rb
georgia-0.7.0 app/helpers/georgia/pages_helper.rb