Sha256: 6c73300b980ef930d37d289532a7dccf487a72dd837c029d41fb65592509f017

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 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.sign_in_count == 1 && current_user.last_sign_in_at.nil?
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy_cms-2.5.0.rc3 app/controllers/alchemy/admin/dashboard_controller.rb