Hash :
566eb7db
Author :
Thomas de Grivel
Date :
2022-08-02T17:49:10
defmodule KmxgitWeb.Admin.DashboardController do
use KmxgitWeb, :controller
alias Kmxgit.Git
alias Kmxgit.OrganisationManager
alias Kmxgit.RepositoryManager
alias Kmxgit.UserManager
def index(conn, _params) do
conn
|> assign(:org_count, OrganisationManager.count_organisations())
|> assign(:page_title, gettext "Dashboard")
|> assign(:repo_count, RepositoryManager.count_repositories())
|> assign(:user_count, UserManager.count_users())
|> render("index.html")
end
end