Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

430 B
Raw Blame
# frozen_string_literal: true

module Admin
  class DashboardController < Admin::ApplicationController
    def index
      # Counts for the Verwaltung tiles. A tile that comes in through the slot
      # :dashboard_management_tiles counts for itself (Lalabase::AdminExtensions).
      @organisation_count = Organisation.count
      @user_count = User.count
      @admin_count = Beuser.where(role: 'admin').count
    end
  end
end