summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-09-14 14:53:36 +0800
committerGitHub <noreply@github.com>2023-09-14 06:53:36 +0000
commit198a9ca6350954a6d3327a408021fec2bc0fc805 (patch)
treede73b2232ca2474ce9126f52d26298f8eaef3dfd /templates
parenta457eb94151a718be64d12eff9d9b7eafd6511ad (diff)
downloadgitea-198a9ca6350954a6d3327a408021fec2bc0fc805.tar.gz
gitea-198a9ca6350954a6d3327a408021fec2bc0fc805.zip
Display all user types and org types on admin management UI (#27050)
Follow #24026 <img width="1049" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/d3fc5159-b5e7-411a-b6f8-4a111a027e6b"> --------- Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/org/list.tmpl3
-rw-r--r--templates/admin/user/list.tmpl8
2 files changed, 10 insertions, 1 deletions
diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl
index a400dcbc86..ac86e7606a 100644
--- a/templates/admin/org/list.tmpl
+++ b/templates/admin/org/list.tmpl
@@ -37,6 +37,9 @@
{{if .Visibility.IsPrivate}}
<span class="text gold">{{svg "octicon-lock"}}</span>
{{end}}
+ {{if eq .Type 3}}{{/* Reserved organization */}}
+ <span class="ui mini label">{{$.locale.Tr "admin.users.reserved"}}</span>
+ {{end}}
</td>
<td>{{.NumTeams}}</td>
<td>{{.NumMembers}}</td>
diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl
index b3e0caa169..7334828533 100644
--- a/templates/admin/user/list.tmpl
+++ b/templates/admin/user/list.tmpl
@@ -84,7 +84,13 @@
<td>
<a href="{{$.Link}}/{{.ID}}">{{.Name}}</a>
{{if .IsAdmin}}
- <span class="ui basic label">{{$.locale.Tr "admin.users.admin"}}</span>
+ <span class="ui mini label">{{$.locale.Tr "admin.users.admin"}}</span>
+ {{else if eq 2 .Type}}{{/* Reserved user */}}
+ <span class="ui mini label">{{$.locale.Tr "admin.users.reserved"}}</span>
+ {{else if eq 4 .Type}}{{/* Bot "user" */}}
+ <span class="ui mini label">{{$.locale.Tr "admin.users.bot"}}</span>
+ {{else if eq 5 .Type}}{{/* Remote user */}}
+ <span class="ui mini label">{{$.locale.Tr "admin.users.remote"}}</span>
{{end}}
</td>
<td class="gt-ellipsis gt-max-width-12rem">{{.Email}}</td>