diff options
author | 6543 <6543@obermui.de> | 2020-08-20 03:53:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 09:53:49 +0800 |
commit | dcb543ac2a9cccc16dd161c820a4a002e8a83e82 (patch) | |
tree | 73673cdcaf43e4c10238740843ae16d592573014 /templates | |
parent | a5440fcb1ef7af8b1b3a828e30dc6af60f0744b2 (diff) | |
download | gitea-dcb543ac2a9cccc16dd161c820a4a002e8a83e82.tar.gz gitea-dcb543ac2a9cccc16dd161c820a4a002e8a83e82.zip |
Show 2FA info on Admin Pannel: Users List (#12515)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/user/list.tmpl | 2 | ||||
-rw-r--r-- | templates/org/member/members.tmpl | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 3442d04195..d6dd7d5c03 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -25,6 +25,7 @@ <th>{{.i18n.Tr "admin.users.activated"}}</th> <th>{{.i18n.Tr "admin.users.admin"}}</th> <th>{{.i18n.Tr "admin.users.restricted"}}</th> + <th>{{.i18n.Tr "admin.users.2fa"}}</th> <th>{{.i18n.Tr "admin.users.repos"}}</th> <th>{{.i18n.Tr "admin.users.created"}}</th> <th data-sortt-asc="recentupdate" data-sortt-desc="leastupdate"> @@ -43,6 +44,7 @@ <td><i class="fa fa{{if .IsActive}}-check{{end}}-square-o"></i></td> <td><i class="fa fa{{if .IsAdmin}}-check{{end}}-square-o"></i></td> <td><i class="fa fa{{if .IsRestricted}}-check{{end}}-square-o"></i></td> + <td><i class="fa fa{{if index $.UsersTwoFaStatus .ID}}-check{{end}}-square-o"></i></td> <td>{{.NumRepos}}</td> <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td> {{if .LastLoginUnix}} diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index 1a65a02278..1c33c55c5a 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -39,7 +39,7 @@ </div> <div class="ui one wide column center"> <div class="meta"> - 2FA + {{$.i18n.Tr "admin.users.2fa"}} </div> <div class="meta"> <strong> |