Sha256: 5496c496e2a742f5c12b5d43fd5b4547f12ebe2dd7a5c998ca4fe835be8d4f0b

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

module Cms
  class DashboardController < Cms::BaseController

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/controllers/cms/dashboard_controller.rb
browsercms-artirix-4.0.3.3 app/controllers/cms/dashboard_controller.rb
browsercms-artirix-4.0.3.2 app/controllers/cms/dashboard_controller.rb
browsercms-artirix-4.0.3.1 app/controllers/cms/dashboard_controller.rb
browsercms-artirix-4.0.3 app/controllers/cms/dashboard_controller.rb
browsercms-artirix-4.0.2 app/controllers/cms/dashboard_controller.rb
browsercms-artirix-4.0.1.1 app/controllers/cms/dashboard_controller.rb
browsercms-artirix-4.0.0.rc1.art4 app/controllers/cms/dashboard_controller.rb
browsercms-4.0.0.rc1 app/controllers/cms/dashboard_controller.rb
browsercms-4.0.0.beta app/controllers/cms/dashboard_controller.rb
browsercms-4.0.0.alpha app/controllers/cms/dashboard_controller.rb