Add a flag for administrators

This commit is contained in:
cuigh 2017-11-24 16:57:36 +08:00
parent 1f652bb6f3
commit db278dbe18

View File

@ -80,7 +80,7 @@
<tbody> <tbody>
{{range .Users}} {{range .Users}}
<tr data-id="{{.ID}}"> <tr data-id="{{.ID}}">
<td><a href="{{.LoginName}}/detail">{{.Name}}</a></td> <td><a href="{{.LoginName}}/detail">{{.Name}}</a>{{ if .Admin }}<span class="icon has-text-danger tooltip" data-tooltip="Administrator"><i class="fa fa-flag"></i></span>{{ end }}</td>
<td>{{.LoginName}}</td> <td>{{.LoginName}}</td>
<td>{{.Email}}</td> <td>{{.Email}}</td>
<td>{{.Type}}</td> <td>{{.Type}}</td>