code.gitea.io/gitea@v1.22.3/templates/admin/packages/list.tmpl (about) 1 {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}} 2 <div class="admin-setting-content"> 3 <h4 class="ui top attached header"> 4 {{ctx.Locale.Tr "admin.packages.package_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .TotalCount}}, 5 {{ctx.Locale.Tr "admin.packages.total_size" (FileSize .TotalBlobSize)}}, 6 {{ctx.Locale.Tr "admin.packages.unreferenced_size" (FileSize .TotalUnreferencedBlobSize)}}) 7 <div class="ui right"> 8 <form method="post" action="{{AppSubUrl}}/admin/packages/cleanup"> 9 {{.CsrfTokenHtml}} 10 <button class="ui primary tiny button">{{ctx.Locale.Tr "admin.packages.cleanup"}}</button> 11 </form> 12 </div> 13 </h4> 14 <div class="ui attached segment"> 15 <form class="ui form ignore-dirty"> 16 <div class="ui small fluid action input"> 17 {{template "shared/search/input" dict "Value" .Query}} 18 <select class="ui small dropdown" name="type"> 19 <option value="">{{ctx.Locale.Tr "packages.filter.type"}}</option> 20 <option value="all">{{ctx.Locale.Tr "packages.filter.type.all"}}</option> 21 {{range $type := .AvailableTypes}} 22 <option{{if eq $.PackageType $type}} selected="selected"{{end}} value="{{$type}}">{{$type.Name}}</option> 23 {{end}} 24 </select> 25 {{template "shared/search/button"}} 26 </div> 27 </form> 28 </div> 29 <div class="ui attached table segment"> 30 <table class="ui very basic striped table unstackable"> 31 <thead> 32 <tr> 33 <th>ID</th> 34 <th>{{ctx.Locale.Tr "admin.packages.owner"}}</th> 35 <th>{{ctx.Locale.Tr "admin.packages.type"}}</th> 36 <th data-sortt-asc="name_asc" data-sortt-desc="name_desc"> 37 {{ctx.Locale.Tr "admin.packages.name"}} 38 {{SortArrow "name_asc" "name_desc" .SortType false}} 39 </th> 40 <th data-sortt-asc="version_desc" data-sortt-desc="version_asc"> 41 {{ctx.Locale.Tr "admin.packages.version"}} 42 {{SortArrow "version_desc" "version_asc" .SortType false}} 43 </th> 44 <th>{{ctx.Locale.Tr "admin.packages.creator"}}</th> 45 <th>{{ctx.Locale.Tr "admin.packages.repository"}}</th> 46 <th>{{ctx.Locale.Tr "admin.packages.size"}}</th> 47 <th data-sortt-asc="created_asc" data-sortt-desc="created_desc"> 48 {{ctx.Locale.Tr "admin.packages.published"}} 49 {{SortArrow "created_asc" "created_desc" .SortType true}} 50 </th> 51 <th>{{ctx.Locale.Tr "admin.notices.op"}}</th> 52 </tr> 53 </thead> 54 <tbody> 55 {{range .PackageDescriptors}} 56 <tr> 57 <td>{{.Version.ID}}</td> 58 <td> 59 <a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> 60 {{if .Owner.Visibility.IsPrivate}} 61 <span class="text gold">{{svg "octicon-lock"}}</span> 62 {{end}} 63 </td> 64 <td>{{.Package.Type.Name}}</td> 65 <td class="gt-ellipsis tw-max-w-48">{{.Package.Name}}</td> 66 <td class="gt-ellipsis tw-max-w-48"><a href="{{.VersionWebLink}}">{{.Version.Version}}</a></td> 67 <td><a href="{{.Creator.HomeLink}}">{{.Creator.Name}}</a></td> 68 <td> 69 {{if .Repository}} 70 <a href="{{.Repository.Link}}">{{.Repository.Name}}</a> 71 {{end}} 72 </td> 73 <td>{{FileSize .CalculateBlobSize}}</td> 74 <td>{{DateTime "short" .Version.CreatedUnix}}</td> 75 <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.Version.ID}}" data-name="{{.Package.Name}}" data-data-version="{{.Version.Version}}">{{svg "octicon-trash"}}</a></td> 76 </tr> 77 {{end}} 78 </tbody> 79 </table> 80 </div> 81 82 {{template "base/paginate" .}} 83 </div> 84 85 <div class="ui g-modal-confirm delete modal"> 86 <div class="header"> 87 {{svg "octicon-trash"}} 88 {{ctx.Locale.Tr "packages.settings.delete"}} 89 </div> 90 <div class="content"> 91 {{ctx.Locale.Tr "packages.settings.delete.notice" (`<span class="name"></span>`|SafeHTML) (`<span class="dataVersion"></span>`|SafeHTML)}} 92 </div> 93 {{template "base/modal_actions_confirm" .}} 94 </div> 95 96 {{template "admin/layout_footer" .}}