loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

enh: admin user view (#7062)

- directly click email address
- show prohibited login state

## Testing

- visit admin panel
- visit a user
- click on "view details"
- check that email address is clickable and opens local email editor
- check that "suspended account" status is visible

![](/attachments/251789ec-0cf1-41f9-bffe-48693917c467)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7062
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Otto Richter <git@otto.splvs.net>
Co-committed-by: Otto Richter <git@otto.splvs.net>

authored by

Otto Richter
Otto Richter
and committed by
Otto
3372db66 6fb069cc

+9 -1
+8
templates/admin/user/view_details.tmpl
··· 27 27 {{end}} 28 28 </div> 29 29 <div class="flex-item-body"> 30 + <b>{{ctx.Locale.Tr "admin.users.prohibit_login"}}:</b> 31 + {{if .User.ProhibitLogin}} 32 + {{svg "octicon-check"}} 33 + {{else}} 34 + {{svg "octicon-x"}} 35 + {{end}} 36 + </div> 37 + <div class="flex-item-body"> 30 38 <b>{{ctx.Locale.Tr "admin.users.restricted"}}:</b> 31 39 {{if .User.IsRestricted}} 32 40 {{svg "octicon-check"}}
+1 -1
templates/admin/user/view_emails.tmpl
··· 3 3 <div class="flex-item"> 4 4 <div class="flex-item-main"> 5 5 <div class="flex-text-block"> 6 - {{.Email}} 6 + <a href="mailto:{{.Email}}">{{.Email}}</a> 7 7 {{if .IsPrimary}} 8 8 <div class="ui primary label">{{ctx.Locale.Tr "settings.primary"}}</div> 9 9 {{end}}