Sha256: 4be2da1f24de7a093d2ddc80514af58d06688f587eba781abec58b81a7c007a3

Contents?: true

Size: 314 Bytes

Versions: 30

Compression:

Stored size: 314 Bytes

Contents

module Locomotive
  class DashboardController < BaseController

    account_required & within_site

    def show
      @activities = current_site.activities.order_by(:created_at.desc).page(params[:page]).per(Locomotive.config.ui[:per_page])
      respond_with @activities, layout: !request.xhr?
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
locomotivecms-4.0.0.rc0 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.0.0.alpha3 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.4.1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.0.0.alpha2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.0.0.alpha1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.4.0 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.3.0 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.3.0.rc3 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.3.0.rc2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.1.2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.2.1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.3.0.rc1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.2.0 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.2.0.rc2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.2.0.rc1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.1.1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.1.0 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.1.0.rc3 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.1.0.rc2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.1.0.rc1 app/controllers/locomotive/dashboard_controller.rb