Sha256: bdd22f4f3f06a0a69230dec649664c42d63ed085be63b800d4c21494888907a7

Contents?: true

Size: 469 Bytes

Versions: 11

Compression:

Stored size: 469 Bytes

Contents

module Cms
  class DashboardController < Cms::BaseController

    layout 'cms/dashboard'

    def index
      @unpublished_pages = Page.unpublished.all(:order => "updated_at desc")
      @unpublished_pages = @unpublished_pages.select { |page| current_user.able_to_publish?(page) }
      @incomplete_tasks = current_user.tasks.incomplete.all(
          :include => :page,
          :order => "#{Task.table_name}.due_date desc, #{Page.table_name}.name")
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.6 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.5 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.4 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.3 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.2 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.1 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.0 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.0.rc3 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.0.rc2 app/controllers/cms/dashboard_controller.rb
browsercms-3.5.0.rc1 app/controllers/cms/dashboard_controller.rb