Skip to content

Commit eea79ce

Browse files
GiteaBotdenyskonsilverwind
authored
highlight user details link (#26998) (#27376)
Backport #26998 by @denyskon This PR adds a separated column in the users table for operations. The username link now redirects back to user page. ![grafik](https://github.com/go-gitea/gitea/assets/47871822/df8c8b30-3da6-443c-ae0f-6e3cac7dd9bb) Resolves #26713 (review) Co-authored-by: silverwind <[email protected]> Co-authored-by: Denys Konovalov <[email protected]> Co-authored-by: silverwind <[email protected]>
1 parent e9340ce commit eea79ce

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

templates/admin/org/list.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{ctx.Locale.Tr "admin.users.created"}}
2626
{{SortArrow "recentupdate" "leastupdate" $.SortType false}}
2727
</th>
28-
<th>{{ctx.Locale.Tr "admin.users.edit"}}</th>
28+
<th></th>
2929
</tr>
3030
</thead>
3131
<tbody>
@@ -45,7 +45,7 @@
4545
<td>{{.NumMembers}}</td>
4646
<td>{{.NumRepos}}</td>
4747
<td>{{DateTime "short" .CreatedUnix}}</td>
48-
<td><a href="{{.OrganisationLink}}/settings">{{svg "octicon-pencil"}}</a></td>
48+
<td><a href="{{.OrganisationLink}}/settings" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a></td>
4949
</tr>
5050
{{end}}
5151
</tbody>

templates/admin/user/list.tmpl

+8-1
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,15 @@
7777
{{ctx.Locale.Tr "admin.users.last_login"}}
7878
{{SortArrow "lastlogin" "reverselastlogin" $.SortType false}}
7979
</th>
80+
<th></th>
8081
</tr>
8182
</thead>
8283
<tbody>
8384
{{range .Users}}
8485
<tr>
8586
<td>{{.ID}}</td>
8687
<td>
87-
<a href="{{$.Link}}/{{.ID}}">{{.Name}}</a>
88+
<a href="{{.HomeLink}}">{{.Name}}</a>
8889
{{if .IsAdmin}}
8990
<span class="ui mini label">{{ctx.Locale.Tr "admin.users.admin"}}</span>
9091
{{else if eq 2 .Type}}{{/* Reserved user */}}
@@ -105,6 +106,12 @@
105106
{{else}}
106107
<td><span>{{ctx.Locale.Tr "admin.users.never_login"}}</span></td>
107108
{{end}}
109+
<td>
110+
<div class="gt-df gt-gap-3">
111+
<a href="{{$.Link}}/{{.ID}}" data-tooltip-content="{{ctx.Locale.Tr "admin.users.details"}}">{{svg "octicon-person"}}</a>
112+
<a href="{{$.Link}}/{{.ID}}/edit" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a>
113+
</div>
114+
</td>
108115
</tr>
109116
{{end}}
110117
</tbody>

0 commit comments

Comments
 (0)