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-3.0.1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.rc7 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.rc6 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.rc5 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.rc4 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.rc3 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.rc2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.rc1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-3.0.0.pre.beta.1 app/controllers/locomotive/dashboard_controller.rb