Skip to content

Commit

Permalink
feat(dashboard): show user's email field to admins
Browse files Browse the repository at this point in the history
  • Loading branch information
vednoc committed Jun 29, 2021
1 parent 6da1d0c commit dd58541
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/core/dashboard.html
Expand Up @@ -34,6 +34,7 @@ <h2>Users</h2>
<th>Updated at</th>
<th>Username</th>
<th>Display name</th>
{{ if gt $.User.Role 1 }}<th>Email</th>{{ end }}
<th>OAuth provider</th>
</thead>
<tbody>
Expand All @@ -42,8 +43,9 @@ <h2>Users</h2>
<td>{{ .ID }}</td>
<td>{{ .CreatedAt | Date }}</td>
<td>{{ .UpdatedAt | Date }}</td>
<td>{{ .Username }}</td>
<td><a href="/user/{{ .Username }}">{{ .Username }}</a></td>
<td>{{ .DisplayName }}</td>
{{ if gt $.User.Role 1 }}<td>{{ .Email }}</td>{{ end }}
<td>{{ .OAuthProvider }}</td>
</tr>
{{ end }}
Expand Down

0 comments on commit dd58541

Please sign in to comment.