mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-21 07:56:31 +00:00
37 lines
821 B
HTML
37 lines
821 B
HTML
|
<h1>Users</h1>
|
||
|
|
||
|
<a href="/">Back</a>
|
||
|
|
||
|
<table border="1">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Login</th>
|
||
|
<th>Full Name</th>
|
||
|
<th>Created</th>
|
||
|
<th>Updated</th>
|
||
|
<th>Email</th>
|
||
|
<th>Site Admin</th>
|
||
|
<th>Gravatar</th>
|
||
|
<th></th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr ng-repeat="user in users">
|
||
|
<td>{{ user.login }}</td>
|
||
|
<td>{{ user.name }}</td>
|
||
|
<td>{{ user.created_at | fromNow }}</td>
|
||
|
<td>{{ user.updated_at | fromNow }}</td>
|
||
|
<td>{{ user.email }}</td>
|
||
|
<td>{{ !!user.admin }}</td>
|
||
|
<td><img ng-src="{{ user.gravatar_id | gravatar }}" /></td>
|
||
|
<td><button ng-click="toggle(user)">toggle admin</button></td>
|
||
|
<td><button ng-click="remove(user)">delete</button></td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<form>
|
||
|
<input type="text" ng-model="login" />
|
||
|
<button ng-click="add(login)">Add</button>
|
||
|
</form>
|