From dd136858f1ea40ad3c94191d647487fa4f31926c 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.0. Signed-off-by: Daniel Baumann --- templates/admin/repo/list.tmpl | 110 ++++++++++++++++++++++++++++++++++++ templates/admin/repo/unadopted.tmpl | 75 ++++++++++++++++++++++++ 2 files changed, 185 insertions(+) create mode 100644 templates/admin/repo/list.tmpl create mode 100644 templates/admin/repo/unadopted.tmpl (limited to 'templates/admin/repo') 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" .}} diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl new file mode 100644 index 0000000..a33cb43 --- /dev/null +++ b/templates/admin/repo/unadopted.tmpl @@ -0,0 +1,75 @@ +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}} +
+

+ {{ctx.Locale.Tr "admin.repos.unadopted"}} + +

+
+
+
+ + + {{template "shared/search/button"}} +
+
+
+ {{if .search}} +
+ {{if .Dirs}} +
+ {{range $dirI, $dir := .Dirs}} +
+ {{svg "octicon-file-directory-fill"}} {{$dir}} +
+ + + + +
+
+ {{end}} +
+ {{template "base/paginate" .}} + {{else}} +
+ {{ctx.Locale.Tr "admin.repos.unadopted.no_more"}} +
+ {{template "base/paginate" .}} + {{end}} +
+ {{end}} +
+ +{{template "admin/layout_footer" .}} -- cgit v1.2.3