Hash :
1e30f33a
Author :
tokyovania
Date :
2022-07-05T15:23:26
Fixed many libgit2 free function calls. Added configure for supporting Linux. Tested on PopOS 22.04 and Fedora 32. Instrumented erl_nif.h . Debugged using valgrind and ASan. @author Jean-Cyprien Roux @author Baptiste Le Glaunec ok thodg@kmx.io
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