2023-04-23 06:21:21 -04:00
|
|
|
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
|
|
|
|
<div class="admin-setting-content">
|
2022-03-30 04:42:47 -04:00
|
|
|
<h4 class="ui top attached header">
|
2023-09-25 08:42:40 -04:00
|
|
|
{{ctx.Locale.Tr "admin.packages.package_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .TotalCount}},
|
2023-09-25 04:56:50 -04:00
|
|
|
{{ctx.Locale.Tr "admin.packages.total_size" (FileSize .TotalBlobSize)}},
|
|
|
|
{{ctx.Locale.Tr "admin.packages.unreferenced_size" (FileSize .TotalUnreferencedBlobSize)}})
|
2023-08-07 20:46:10 -04:00
|
|
|
<div class="ui right">
|
|
|
|
<form method="post" action="/admin/packages/cleanup">
|
|
|
|
{{.CsrfTokenHtml}}
|
2023-09-25 04:56:50 -04:00
|
|
|
<button class="ui primary tiny button">{{ctx.Locale.Tr "admin.packages.cleanup"}}</button>
|
2023-08-07 20:46:10 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
2022-03-30 04:42:47 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<form class="ui form ignore-dirty">
|
|
|
|
<div class="ui fluid action input">
|
2023-11-20 03:57:46 -05:00
|
|
|
{{template "shared/searchinput" dict "Value" .Query}}
|
2022-03-30 04:42:47 -04:00
|
|
|
<select class="ui dropdown" name="type">
|
2023-09-25 04:56:50 -04:00
|
|
|
<option value="">{{ctx.Locale.Tr "packages.filter.type"}}</option>
|
|
|
|
<option value="all">{{ctx.Locale.Tr "packages.filter.type.all"}}</option>
|
2022-12-28 18:31:54 -05:00
|
|
|
{{range $type := .AvailableTypes}}
|
|
|
|
<option{{if eq $.PackageType $type}} selected="selected"{{end}} value="{{$type}}">{{$type.Name}}</option>
|
|
|
|
{{end}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</select>
|
2023-09-25 04:56:50 -04:00
|
|
|
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="ui attached table segment">
|
Improve UI on mobile (#19546)
Start making the mobile experience not painful and be actually usable. This contains a few smaller changes to enhance this experience.
- Submit buttons on the review forms aren't columns anymore and are now allowed to be displayed on one row.
- The label/milestone & New Issue buttons were given each own row even tough, there's enough place to do it one the same row. This commit fixes that.
- The issues+Pull tab on repo's has a third item besides the label/milestone & New Issue buttons, the search bar. On desktop there's enough place to do this on one row, for mobile it isn't, currently it was using for each item a new row. This commits fixes that by only giving the searchbar a new row and have the other two buttons on the same row.
- The notification table will now be show a scrollbar instead of overflow.
- The repo buttons(Watch, Star, Fork) on mobile were showing quite big and the SVG wasn't even displayed on the same line, if the count of those numbers were too high it would even overflow. This commit removes the SVG, as there isn't any place to show them on the same row and allows them to have a new row if the counts of those buttons are high.
- The admin page can show you a lot of interesting information, on mobile the System Status + Configuration weren't properly displayed as the margin's were too high. This commit fixes that by reducing the margin to a number that makes sense on mobile.
- Fixes to not overflow the tables but instead force them to be scrollable.
- When viewing a issue or pull request, the comments aren't full-width but instead 80% and aligned to right, on mobile this is a annoyance as there isn't much width to begin with. This commits fixes that by forcing full-width and removing the avatars on the left side and instead including them inline in the comment header.
2022-05-01 12:11:21 -04:00
|
|
|
<table class="ui very basic striped table unstackable">
|
2022-03-30 04:42:47 -04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
2023-09-25 04:56:50 -04:00
|
|
|
<th>{{ctx.Locale.Tr "admin.packages.owner"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.packages.type"}}</th>
|
2022-10-22 21:18:15 -04:00
|
|
|
<th data-sortt-asc="name_asc" data-sortt-desc="name_desc">
|
2023-09-25 04:56:50 -04:00
|
|
|
{{ctx.Locale.Tr "admin.packages.name"}}
|
2022-10-22 21:18:15 -04:00
|
|
|
{{SortArrow "name_asc" "name_desc" .SortType false}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</th>
|
2022-10-22 21:18:15 -04:00
|
|
|
<th data-sortt-asc="version_desc" data-sortt-desc="version_asc">
|
2023-09-25 04:56:50 -04:00
|
|
|
{{ctx.Locale.Tr "admin.packages.version"}}
|
2022-10-22 21:18:15 -04:00
|
|
|
{{SortArrow "version_desc" "version_asc" .SortType false}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</th>
|
2023-09-25 04:56:50 -04:00
|
|
|
<th>{{ctx.Locale.Tr "admin.packages.creator"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.packages.repository"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.packages.size"}}</th>
|
2022-10-22 21:18:15 -04:00
|
|
|
<th data-sortt-asc="created_asc" data-sortt-desc="created_desc">
|
2023-09-25 04:56:50 -04:00
|
|
|
{{ctx.Locale.Tr "admin.packages.published"}}
|
2022-10-22 21:18:15 -04:00
|
|
|
{{SortArrow "created_asc" "created_desc" .SortType true}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</th>
|
2023-09-25 04:56:50 -04:00
|
|
|
<th>{{ctx.Locale.Tr "admin.notices.op"}}</th>
|
2022-03-30 04:42:47 -04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .PackageDescriptors}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.Version.ID}}</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
|
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
|
|
|
<span class="text gold">{{svg "octicon-lock"}}</span>
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
<td>{{.Package.Type.Name}}</td>
|
2023-07-22 06:54:48 -04:00
|
|
|
<td class="gt-ellipsis gt-max-width-12rem">{{.Package.Name}}</td>
|
|
|
|
<td class="gt-ellipsis gt-max-width-12rem"><a href="{{.FullWebLink}}">{{.Version.Version}}</a></td>
|
2022-03-30 04:42:47 -04:00
|
|
|
<td><a href="{{.Creator.HomeLink}}">{{.Creator.Name}}</a></td>
|
|
|
|
<td>
|
|
|
|
{{if .Repository}}
|
|
|
|
<a href="{{.Repository.Link}}">{{.Repository.Name}}</a>
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
<td>{{FileSize .CalculateBlobSize}}</td>
|
2023-04-25 15:48:30 -04:00
|
|
|
<td>{{DateTime "short" .Version.CreatedUnix}}</td>
|
2022-03-30 04:42:47 -04:00
|
|
|
<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>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "base/paginate" .}}
|
|
|
|
</div>
|
|
|
|
|
2023-04-24 07:08:59 -04:00
|
|
|
<div class="ui g-modal-confirm delete modal">
|
2023-04-23 05:24:19 -04:00
|
|
|
<div class="header">
|
2022-03-30 04:42:47 -04:00
|
|
|
{{svg "octicon-trash"}}
|
2023-09-25 04:56:50 -04:00
|
|
|
{{ctx.Locale.Tr "packages.settings.delete"}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2024-02-17 20:48:59 -05:00
|
|
|
{{ctx.Locale.Tr "packages.settings.delete.notice" (`<span class="name"></span>`|Safe) (`<span class="dataVersion"></span>`|Safe)}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
2023-04-23 05:24:19 -04:00
|
|
|
{{template "base/modal_actions_confirm" .}}
|
2022-03-30 04:42:47 -04:00
|
|
|
</div>
|
2023-04-23 06:21:21 -04:00
|
|
|
|
|
|
|
{{template "admin/layout_footer" .}}
|