Hash :
1e30f33a
Author :
tokyovania
Date :
2022-07-05T15:23:26
defmodule KmxgitWeb.Admin.DashboardController do
use KmxgitWeb, :controller
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