Sha256: 08463a8f3091b971cf158525eba75e2bf460f1c339ebcfc7f5b126acfd09b775

Contents?: true

Size: 487 Bytes

Versions: 26

Compression:

Stored size: 487 Bytes

Contents

module Alchemy
  module Admin
    class DashboardController < Alchemy::Admin::BaseController

      def index
        @alchemy_version = Alchemy::VERSION
        @clipboard_items = session[:clipboard]
        @last_edited_pages = Page.all_last_edited_from(current_user)
        @locked_pages = Page.all_locked
        @online_users = User.logged_in.to_a - [current_user]
        @first_time = current_user.login_count == 1 && current_user.last_login_at.nil?
      end

    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc14 app/controllers/alchemy/admin/dashboard_controller.rb
alchemy_cms-2.2.rc13 app/controllers/alchemy/admin/dashboard_controller.rb
alchemy_cms-2.2.rc11 app/controllers/alchemy/admin/dashboard_controller.rb
alchemy_cms-2.2.rc8 app/controllers/alchemy/admin/dashboard_controller.rb
alchemy_cms-2.2.rc7 app/controllers/alchemy/admin/dashboard_controller.rb
alchemy_cms-2.2.rc6 app/controllers/alchemy/admin/dashboard_controller.rb