Sha256: 5ae3ac7e15a0e55e67bb0bd898b6e5eea08195052aafd0ef53bdd43b53c3651e

Contents?: true

Size: 391 Bytes

Versions: 9

Compression:

Stored size: 391 Bytes

Contents

class Cms::DashboardController < Cms::BaseController
      
  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 => "tasks.due_date desc, pages.name")
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
browsercms-3.0.6 app/controllers/cms/dashboard_controller.rb
browsercms-3.0.5 app/controllers/cms/dashboard_controller.rb
we5-browsercms-3.0.5.1 app/controllers/cms/dashboard_controller.rb
we5-browsercms-3.0.5 app/controllers/cms/dashboard_controller.rb
browsercms_s3-3.0.5 app/controllers/cms/dashboard_controller.rb
browsercms-3.0.4 app/controllers/cms/dashboard_controller.rb
browsercms-3.0.3 app/controllers/cms/dashboard_controller.rb
browsercms_s3-3.0.4 app/controllers/cms/dashboard_controller.rb
browsercms_s3-3.0.3 app/controllers/cms/dashboard_controller.rb