2023-04-23 18:21:21 +08:00
|
|
|
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}}
|
|
|
|
<div class="admin-setting-content">
|
2017-03-16 06:39:38 +08:00
|
|
|
<h4 class="ui top attached header">
|
2023-09-25 20:42:40 +08:00
|
|
|
{{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
|
2017-03-16 06:39:38 +08:00
|
|
|
<div class="ui right">
|
2024-10-10 12:56:49 +08:00
|
|
|
<a class="ui primary tiny button" href="{{AppSubUrl}}/-/admin/auths/new">{{ctx.Locale.Tr "admin.auths.new"}}</a>
|
2015-09-11 03:45:03 +08:00
|
|
|
</div>
|
2017-03-16 06:39:38 +08:00
|
|
|
</h4>
|
|
|
|
<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-02 00:11:21 +08:00
|
|
|
<table class="ui very basic striped table unstackable">
|
2017-03-16 06:39:38 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
2023-09-25 16:56:50 +08:00
|
|
|
<th>{{ctx.Locale.Tr "admin.auths.name"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.auths.type"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.auths.enabled"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.auths.updated"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.users.created"}}</th>
|
|
|
|
<th>{{ctx.Locale.Tr "admin.users.edit"}}</th>
|
2017-03-16 06:39:38 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Sources}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.ID}}</td>
|
2024-10-10 12:56:49 +08:00
|
|
|
<td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{.Name}}</a></td>
|
2017-03-16 06:39:38 +08:00
|
|
|
<td>{{.TypeName}}</td>
|
2024-06-11 21:07:10 +08:00
|
|
|
<td>{{svg (Iif .IsActive "octicon-check" "octicon-x")}}</td>
|
2024-11-02 12:08:28 +08:00
|
|
|
<td>{{ctx.DateUtils.AbsoluteShort .UpdatedUnix}}</td>
|
|
|
|
<td>{{ctx.DateUtils.AbsoluteShort .CreatedUnix}}</td>
|
2024-10-10 12:56:49 +08:00
|
|
|
<td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{svg "octicon-pencil"}}</a></td>
|
2017-03-16 06:39:38 +08:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-12-08 06:30:52 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-23 18:21:21 +08:00
|
|
|
{{template "admin/layout_footer" .}}
|