2023-04-28 07:18:41 +05:30
|
|
|
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
|
2023-04-23 15:51:21 +05:30
|
|
|
<div class="admin-setting-content">
|
2017-03-16 04:09:38 +05:30
|
|
|
<h4 class="ui top attached header">
|
2023-09-25 18:12:40 +05:30
|
|
|
{{ctx.Locale.Tr "admin.repos.repo_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
|
2020-09-25 09:39:23 +05:30
|
|
|
<div class="ui right">
|
2023-09-25 14:26:50 +05:30
|
|
|
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/repos/unadopted">{{ctx.Locale.Tr "admin.repos.unadopted"}}</a>
|
2021-04-11 09:16:37 +05:30
|
|
|
</div>
|
2017-03-16 04:09:38 +05:30
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2018-05-24 06:33:42 +05:30
|
|
|
{{template "admin/repo/search" .}}
|
2017-03-16 04:09:38 +05:30
|
|
|
</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 21:41:21 +05:30
|
|
|
<table class="ui very basic striped table unstackable">
|
2017-03-16 04:09:38 +05:30
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-06-25 03:53:05 +05:30
|
|
|
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" $.SortType false}}</th>
|
2023-09-25 14:26:50 +05:30
|
|
|
<th>{{ctx.Locale.Tr "admin.repos.owner"}}</th>
|
2020-06-25 03:53:05 +05:30
|
|
|
<th data-sortt-asc="alphabetically" data-sortt-desc="reversealphabetically">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "admin.repos.name"}}
|
2020-06-25 03:53:05 +05:30
|
|
|
{{SortArrow "alphabetically" "reversealphabetically" $.SortType false}}
|
|
|
|
</th>
|
2023-09-25 14:26:50 +05:30
|
|
|
<th>{{ctx.Locale.Tr "admin.repos.watches"}}</th>
|
2020-06-25 03:53:05 +05:30
|
|
|
<th data-sortt-asc="moststars" data-sortt-desc="feweststars">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "admin.repos.stars"}}
|
2020-06-25 03:53:05 +05:30
|
|
|
{{SortArrow "moststars" "feweststars" $.SortType false}}
|
|
|
|
</th>
|
|
|
|
<th data-sortt-asc="mostforks" data-sortt-desc="fewestforks">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "admin.repos.forks"}}
|
2020-06-25 03:53:05 +05:30
|
|
|
{{SortArrow "mostforks" "fewestforks" $.SortType false}}
|
|
|
|
</th>
|
2023-09-25 14:26:50 +05:30
|
|
|
<th>{{ctx.Locale.Tr "admin.repos.issues"}}</th>
|
2023-06-29 04:11:02 +05:30
|
|
|
<th data-sortt-asc="gitsize" data-sortt-desc="reversegitsize">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "admin.repos.size"}}
|
2023-06-29 04:11:02 +05:30
|
|
|
{{SortArrow "gitsize" "reversegitsize" $.SortType false}}
|
|
|
|
</th>
|
|
|
|
<th data-sortt-asc="lfssize" data-sortt-desc="reverselfssize">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "admin.repos.lfs_size"}}
|
2023-06-29 04:11:02 +05:30
|
|
|
{{SortArrow "lfssize" "reverselfssize" $.SortType false}}
|
2020-06-25 03:53:05 +05:30
|
|
|
</th>
|
2023-09-25 14:26:50 +05:30
|
|
|
<th>{{ctx.Locale.Tr "admin.auths.updated"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.users.created"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.notices.op"}}</th>
|
2017-03-16 04:09:38 +05:30
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Repos}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.ID}}</td>
|
2019-02-18 21:30:27 +05:30
|
|
|
<td>
|
2021-11-16 23:48:25 +05:30
|
|
|
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
|
2019-02-18 21:30:27 +05:30
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text gold">{{svg "octicon-lock"}}</span>
|
2019-02-18 21:30:27 +05:30
|
|
|
{{end}}
|
|
|
|
</td>
|
2021-01-04 17:48:12 +05:30
|
|
|
<td>
|
2021-11-16 23:48:25 +05:30
|
|
|
<a href="{{.Link}}">{{.Name}}</a>
|
2021-04-14 19:03:22 +05:30
|
|
|
{{if .IsArchived}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<span class="ui basic mini label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
|
2021-04-14 19:03:22 +05:30
|
|
|
{{end}}
|
|
|
|
{{if .IsTemplate}}
|
|
|
|
{{if .IsPrivate}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<span class="ui basic mini label">{{ctx.Locale.Tr "repo.desc.private_template"}}</span>
|
2021-04-14 19:03:22 +05:30
|
|
|
{{else}}
|
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<span class="ui basic mini label">{{ctx.Locale.Tr "repo.desc.internal_template"}}</span>
|
2021-04-14 19:03:22 +05:30
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{if .IsPrivate}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<span class="ui basic mini label">{{ctx.Locale.Tr "repo.desc.private"}}</span>
|
2021-04-14 19:03:22 +05:30
|
|
|
{{else}}
|
|
|
|
{{if .Owner.Visibility.IsPrivate}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<span class="ui basic mini label">{{ctx.Locale.Tr "repo.desc.internal"}}</span>
|
2021-04-14 19:03:22 +05:30
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if .IsFork}}
|
|
|
|
{{svg "octicon-repo-forked"}}
|
|
|
|
{{else if .IsMirror}}
|
|
|
|
{{svg "octicon-mirror"}}
|
2021-01-04 17:48:12 +05:30
|
|
|
{{end}}
|
|
|
|
</td>
|
2017-03-16 04:09:38 +05:30
|
|
|
<td>{{.NumWatches}}</td>
|
|
|
|
<td>{{.NumStars}}</td>
|
2018-05-24 06:33:42 +05:30
|
|
|
<td>{{.NumForks}}</td>
|
2017-03-16 04:09:38 +05:30
|
|
|
<td>{{.NumIssues}}</td>
|
2023-06-29 04:11:02 +05:30
|
|
|
<td>{{FileSize .GitSize}}</td>
|
|
|
|
<td>{{FileSize .LFSSize}}</td>
|
2023-04-30 00:10:10 +05:30
|
|
|
<td>{{DateTime "short" .UpdatedUnix}}</td>
|
2023-04-26 01:18:30 +05:30
|
|
|
<td>{{DateTime "short" .CreatedUnix}}</td>
|
2021-03-22 09:34:19 +05:30
|
|
|
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}">{{svg "octicon-trash"}}</a></td>
|
2017-03-16 04:09:38 +05:30
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-09-26 05:15:44 +05:30
|
|
|
</div>
|
2017-03-16 04:09:38 +05:30
|
|
|
|
|
|
|
{{template "base/paginate" .}}
|
2015-09-26 05:15:44 +05:30
|
|
|
</div>
|
2015-12-06 04:09:29 +05:30
|
|
|
|
2023-04-24 16:38:59 +05:30
|
|
|
<div class="ui g-modal-confirm delete modal">
|
2023-04-23 14:54:19 +05:30
|
|
|
<div class="header">
|
2021-03-22 09:34:19 +05:30
|
|
|
{{svg "octicon-trash"}}
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "repo.settings.delete"}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
|
|
|
<div class="content">
|
2023-09-25 14:26:50 +05:30
|
|
|
<p>{{ctx.Locale.Tr "repo.settings.delete_desc"}}</p>
|
|
|
|
{{ctx.Locale.Tr "repo.settings.delete_notices_2" `<span class="name"></span>` | Safe}}<br>
|
|
|
|
{{ctx.Locale.Tr "repo.settings.delete_notices_fork_1"}}<br>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2023-04-23 14:54:19 +05:30
|
|
|
{{template "base/modal_actions_confirm" .}}
|
2015-12-06 04:09:29 +05:30
|
|
|
</div>
|
2023-04-23 15:51:21 +05:30
|
|
|
|
|
|
|
{{template "admin/layout_footer" .}}
|