From ce7ddafb987d95a4b6363f9a61a8ecae4db3d6a5 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 27 Sep 2023 02:33:06 +0000 Subject: [PATCH 1/5] add a shortcut to user's profile page to admin user details --- templates/shared/user/profile_big_avatar.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index e328c26e1f61c..aad7a43c02015 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -118,6 +118,13 @@ {{end}} {{end}} + {{if and .IsSigned .IsAdmin}} +
  • + + {{.locale.Tr "admin.users.details"}} + +
  • + {{end}} From c0e6d37cba29d033f6f67eeefef6c8fb0755183b Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 27 Sep 2023 02:35:07 +0000 Subject: [PATCH 2/5] update template locale ref --- templates/shared/user/profile_big_avatar.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index d214769bf0c10..e42a33dc7ac1f 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -121,7 +121,7 @@ {{if and .IsSigned .IsAdmin}} {{end}} From 742b5914711e4118890709ad1436a7ca9335d475 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sat, 7 Oct 2023 01:51:54 +0000 Subject: [PATCH 3/5] fix per feedback --- templates/shared/user/profile_big_avatar.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index e42a33dc7ac1f..9bfa972f4a443 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -118,9 +118,9 @@ {{end}} {{end}} - {{if and .IsSigned .IsAdmin}} -
  • + {{ctx.Locale.Tr "admin.users.details"}}
  • From f20dea60886018e2942830998980b425190024b9 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sat, 7 Oct 2023 02:14:14 +0000 Subject: [PATCH 4/5] make gear icon link, no need for button --- templates/shared/user/profile_big_avatar.tmpl | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index 424c4e2667c69..da16e62dc3bfd 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -13,7 +13,11 @@
    {{if .ContextUser.FullName}}{{.ContextUser.FullName}}{{end}} - {{.ContextUser.Name}} + {{.ContextUser.Name}} {{if .IsAdmin}} + + {{svg "octicon-gear" 18 "gt-mr-2"}} + + {{end}}
    From d54c8b9ab952eda5a500e8617a2b23e09db87c1b Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sat, 7 Oct 2023 19:54:23 -0400 Subject: [PATCH 5/5] Update templates/shared/user/profile_big_avatar.tmpl --- templates/shared/user/profile_big_avatar.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index da16e62dc3bfd..a637a9a5f9151 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -15,7 +15,7 @@ {{if .ContextUser.FullName}}{{.ContextUser.FullName}}{{end}} {{.ContextUser.Name}} {{if .IsAdmin}} - {{svg "octicon-gear" 18 "gt-mr-2"}} + {{svg "octicon-gear" 18}} {{end}}