Sha256: 2b03c1a1b880adf1dbeeaf9995aa831cb699a772a761f3fb04558996e6cb0a07

Contents?: true

Size: 363 Bytes

Versions: 9

Compression:

Stored size: 363 Bytes

Contents

module Locomotive
  class DashboardController < BaseController

    helper Locomotive::Shared::ActivitiesHelper

    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

9 entries across 9 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.2.0.alpha1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.1.1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.1.0 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.1.0.rc1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.0.3 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.0.2 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.0.1 app/controllers/locomotive/dashboard_controller.rb
locomotivecms-4.0.0 app/controllers/locomotive/dashboard_controller.rb