From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/admin/repo/list.tmpl | 110 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 templates/admin/repo/list.tmpl (limited to 'templates/admin/repo/list.tmpl') diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl new file mode 100644 index 0000000..1ea6183 --- /dev/null +++ b/templates/admin/repo/list.tmpl @@ -0,0 +1,110 @@ +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}} +
+

+ {{ctx.Locale.Tr "admin.repos.repo_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) + +

+
+ {{template "shared/repo_search" .}} +
+
+ + + + + + + + + + + + + + + + + + + {{range .Repos}} + + + + + + + + + + + + + + + {{end}} + +
ID{{SortArrow "oldest" "newest" $.SortType false}}{{ctx.Locale.Tr "admin.repos.owner"}} + {{ctx.Locale.Tr "admin.repos.name"}} + {{SortArrow "alphabetically" "reversealphabetically" $.SortType false}} + {{ctx.Locale.Tr "repo.watchers"}} + {{ctx.Locale.Tr "repo.stars"}} + {{SortArrow "moststars" "feweststars" $.SortType false}} + + {{ctx.Locale.Tr "repo.forks"}} + {{SortArrow "mostforks" "fewestforks" $.SortType false}} + {{ctx.Locale.Tr "admin.repos.issues"}} + {{ctx.Locale.Tr "admin.repos.size"}} + {{SortArrow "gitsize" "reversegitsize" $.SortType false}} + + {{ctx.Locale.Tr "admin.repos.lfs_size"}} + {{SortArrow "lfssize" "reverselfssize" $.SortType false}} + {{ctx.Locale.Tr "admin.auths.updated"}}{{ctx.Locale.Tr "admin.users.created"}}{{ctx.Locale.Tr "admin.notices.op"}}
{{.ID}} + {{.Owner.Name}} + {{if .Owner.Visibility.IsPrivate}} + {{svg "octicon-lock"}} + {{end}} + + {{.Name}} + {{if .IsArchived}} + {{ctx.Locale.Tr "repo.desc.archived"}} + {{end}} + {{if .IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} + {{else}} + {{if .Owner.Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.internal"}} + {{end}} + {{end}} + {{if .IsTemplate}} + {{ctx.Locale.Tr "repo.desc.template"}} + {{end}} + {{if eq .ObjectFormatName "sha256"}} + {{ctx.Locale.Tr "repo.desc.sha256"}} + {{end}} + {{if .IsMirror}} + {{svg "octicon-mirror"}} + {{else if .IsFork}} + {{svg "octicon-repo-forked"}} + {{end}} + {{.NumWatches}}{{.NumStars}}{{.NumForks}}{{.NumIssues}}{{ctx.Locale.TrSize .GitSize}}{{ctx.Locale.TrSize .LFSSize}}{{DateTime "short" .UpdatedUnix}}{{DateTime "short" .CreatedUnix}}{{svg "octicon-trash"}}
+
+ + {{template "base/paginate" .}} +
+ + + +{{template "admin/layout_footer" .}} -- cgit v1.2.3