woodpecker/server/static/scripts/views/user.html

57 lines
1.2 KiB
HTML
Raw Normal View History

2015-04-08 22:43:59 +00:00
<h1>{{ user.login }}</h1>
<a href="/">Back</a>
<dl>
<dt>Login</dt>
<dd>{{ user.login }}</dd>
<dt>Full Name</dt>
<dd>{{ user.name }}</dd>
<dt>Created</dt>
<dd>{{ user.created_at | fromNow }}</dd>
<dt>Updated</dt>
<dd>{{ user.update_at | fromNow }}</dd>
<dt>Email</dt>
<dd>{{ user.email }}</dd>
<dt>Site Admin</dt>
<dd>{{ user.admin }}</dd>
<dt>Gravatar</dt>
<dd><img ng-src="{{ user.gravatar_id | gravatar }}"</dd>
</dl>
<form>
<input type="label" ng-model="newToken.label" />
<button ng-click="createToken(newToken)">Create</button>
</form>
<div class="alert" ng-if="tokens && tokens.length === 0">No Personal Tokens Exist</div>
<table ng-if="tokens && tokens.length !== 0">
<thead>
<tr>
<th>Label</th>
<th>Issued</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat-start="token in tokens">
<td>{{ token.label }}</td>
<td>{{ token.issued_at | fromNow }}</td>
<td><button ng-click="revokeToken(token)">delete</button></td>
</tr>
<tr ng-repeat-end ng-if="token.hash">
<td colspan="3">
<span>Make sure to copy your new personal access token now. You won't be able to see it again!</span>
<pre style="white-space: pre-line;overflow-wrap: break-word;">{{ token.hash }}</pre>
</td>
</tr>
</tbody>
</table>