2015-05-21 07:08:33 +00:00
|
|
|
<article>
|
|
|
|
<section>
|
|
|
|
<h2>Login info</h2>
|
|
|
|
<div class="row">
|
|
|
|
<div>Login</div>
|
|
|
|
<div>{{ user.login }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div>Full Name</div>
|
|
|
|
<div>{{ user.name }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div>Email</div>
|
|
|
|
<div>{{ user.email }}</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2015-04-13 23:33:29 +00:00
|
|
|
|
2015-05-21 07:08:33 +00:00
|
|
|
<section>
|
|
|
|
<h2>Tokens</h2>
|
|
|
|
<form>
|
2015-07-12 12:22:55 +00:00
|
|
|
<div style="padding-left: 20px; float: left;">
|
|
|
|
<input type="label" ng-model="newToken.label" />
|
|
|
|
</div>
|
|
|
|
<div style="padding-top: 20px; padding-left: 20px; float: left;">
|
2015-05-21 07:08:33 +00:00
|
|
|
<button ng-click="createToken(newToken)">Create</button>
|
2015-07-12 12:22:55 +00:00
|
|
|
</div>
|
2015-05-21 07:08:33 +00:00
|
|
|
</form>
|
2015-04-13 23:33:29 +00:00
|
|
|
|
2015-05-21 07:08:33 +00:00
|
|
|
<div class="alert" ng-if="tokens && tokens.length === 0">No Personal Tokens Exist</div>
|
2015-04-13 23:33:29 +00:00
|
|
|
|
2015-05-21 07:08:33 +00:00
|
|
|
<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>
|
|
|
|
</section>
|
|
|
|
</article>
|