Sha256: 8650612d52a90e9666c2665a260de01e90d7582b2487997936409032f5e1b56a

Contents?: true

Size: 524 Bytes

Versions: 57

Compression:

Stored size: 524 Bytes

Contents

module Hyrax
  module Admin
    class DashboardPresenter
      # @return [Fixnum] the number of currently registered users
      def user_count
        ::User.where(guest: false).count
      end

      def repository_objects
        @repository_objects ||= Admin::RepositoryObjectPresenter.new
      end

      def repository_growth
        @repository_growth ||= Admin::RepositoryGrowthPresenter.new
      end

      def user_activity
        @user_activity ||= Admin::UserActivityPresenter.new
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.9.5 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.9.4 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.9.3 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.9.2 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.9.1 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.9.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.8.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.7.2 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.7.1 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.7.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.6.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0.pre.rc1 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0.pre.beta3 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.5.1 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.5.0 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0.pre.beta2 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.4.1 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-3.0.0.pre.beta1 app/presenters/hyrax/admin/dashboard_presenter.rb
hyrax-2.4.0 app/presenters/hyrax/admin/dashboard_presenter.rb