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/packages/list.tmpl | 96 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 templates/admin/packages/list.tmpl (limited to 'templates/admin/packages/list.tmpl') diff --git a/templates/admin/packages/list.tmpl b/templates/admin/packages/list.tmpl new file mode 100644 index 0000000..4ff49b8 --- /dev/null +++ b/templates/admin/packages/list.tmpl @@ -0,0 +1,96 @@ +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}} +
+

+ {{ctx.Locale.Tr "admin.packages.package_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .TotalCount}}, + {{ctx.Locale.Tr "admin.packages.total_size" (ctx.Locale.TrSize .TotalBlobSize)}}, + {{ctx.Locale.Tr "admin.packages.unreferenced_size" (ctx.Locale.TrSize .TotalUnreferencedBlobSize)}}) +
+
+ {{.CsrfTokenHtml}} + +
+
+

+
+
+
+ {{template "shared/search/input" dict "Value" .Query}} + + {{template "shared/search/button"}} +
+
+
+
+ + + + + + + + + + + + + + + + + {{range .PackageDescriptors}} + + + + + + + + + + + + + {{end}} + +
ID{{ctx.Locale.Tr "admin.packages.owner"}}{{ctx.Locale.Tr "admin.packages.type"}} + {{ctx.Locale.Tr "admin.packages.name"}} + {{SortArrow "name_asc" "name_desc" .SortType false}} + + {{ctx.Locale.Tr "admin.packages.version"}} + {{SortArrow "version_desc" "version_asc" .SortType false}} + {{ctx.Locale.Tr "admin.packages.creator"}}{{ctx.Locale.Tr "admin.packages.repository"}}{{ctx.Locale.Tr "admin.packages.size"}} + {{ctx.Locale.Tr "admin.packages.published"}} + {{SortArrow "created_asc" "created_desc" .SortType true}} + {{ctx.Locale.Tr "admin.notices.op"}}
{{.Version.ID}} + {{.Owner.Name}} + {{if .Owner.Visibility.IsPrivate}} + {{svg "octicon-lock"}} + {{end}} + {{.Package.Type.Name}}{{.Package.Name}}{{.Version.Version}}{{.Creator.Name}} + {{if .Repository}} + {{.Repository.Name}} + {{end}} + {{ctx.Locale.TrSize .CalculateBlobSize}}{{DateTime "short" .Version.CreatedUnix}}{{svg "octicon-trash"}}
+
+ + {{template "base/paginate" .}} +
+ + + +{{template "admin/layout_footer" .}} -- cgit v1.2.3