From 4ab597f479265c3b66c94d40ad130ced5ae8b91f Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 1 Oct 2023 05:58:24 +0200 Subject: [PATCH] highlight user details link (#26998) 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 https://github.com/go-gitea/gitea/pull/26713#pullrequestreview-1603001285 Co-authored-by: silverwind --- templates/admin/org/list.tmpl | 4 ++-- templates/admin/user/list.tmpl | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 1c041ca34..0d79456b4 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -25,7 +25,7 @@ {{ctx.Locale.Tr "admin.users.created"}} {{SortArrow "recentupdate" "leastupdate" $.SortType false}} - {{ctx.Locale.Tr "admin.users.edit"}} + @@ -45,7 +45,7 @@ {{.NumMembers}} {{.NumRepos}} {{DateTime "short" .CreatedUnix}} - {{svg "octicon-pencil"}} + {{svg "octicon-pencil"}} {{end}} diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index fba67fac1..46fd376da 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -77,6 +77,7 @@ {{ctx.Locale.Tr "admin.users.last_login"}} {{SortArrow "lastlogin" "reverselastlogin" $.SortType false}} + @@ -84,7 +85,7 @@ {{.ID}} - {{.Name}} + {{.Name}} {{if .IsAdmin}} {{ctx.Locale.Tr "admin.users.admin"}} {{else if eq 2 .Type}}{{/* Reserved user */}} @@ -105,6 +106,12 @@ {{else}} {{ctx.Locale.Tr "admin.users.never_login"}} {{end}} + + + {{end}}