UX: remove auth token log from user page

This feature is not quite ready so we are deferring on it for a few more weeks
This commit is contained in:
Sam 2018-09-04 10:28:33 +10:00
parent eeedc3901e
commit 155eb02c7e
1 changed files with 0 additions and 68 deletions

View File

@ -161,74 +161,6 @@
</div> </div>
{{/if}} {{/if}}
{{#if canCheckEmails}}
<div class="control-group pref-auth-tokens">
<label class="control-label">{{i18n 'user.auth_tokens.title'}}</label>
<a {{action "revokeAuthToken"}} class="pull-right">{{d-icon "sign-out"}} {{i18n 'user.auth_tokens.logout'}}</a>
{{#each model.user_auth_tokens as |token|}}
<a class="perf-auth-token" {{action "toggleToken" token}}>
<div class="row auth-token-summary">
<div class="auth-token-label">
{{d-icon token.icon}} {{token.device_name}}
{{#if token.visible}}
{{d-icon "angle-double-up"}}
{{else}}
{{d-icon "angle-double-down"}}
{{/if}}
</div>
<div class="auth-token-value">
{{token.client_ip}} <span class="muted">&mdash; {{format-date token.seen_at}}</span>
</div>
</div>
{{#if token.visible}}
<div class="auth-token-details">
<div class="row">
<div class="auth-token-label">{{i18n 'user.auth_tokens.ip_address'}}</div>
<div class="auth-token-value">{{token.client_ip}}</div>
</div>
<div class="row">
<div class="auth-token-label">{{i18n 'user.auth_tokens.first_seen'}}</div>
<div class="auth-token-value">{{format-date token.created_at}}</div>
</div>
<div class="row">
<div class="auth-token-label">{{i18n 'user.auth_tokens.last_seen'}}</div>
<div class="auth-token-value">{{format-date token.seen_at}}</div>
</div>
<div class="row">
<div class="auth-token-label">{{i18n 'user.auth_tokens.operating_system'}}</div>
<div class="auth-token-value">{{token.os}}</div>
</div>
</div>
{{/if}}
</a>
{{/each}}
</div>
{{/if}}
{{#if canCheckEmails}}
{{#if model.staff}}
<div class="control-group pref-auth-tokens">
<label class="control-label">{{i18n 'user.auth_tokens.title_logs'}}</label>
{{#if model.user_auth_token_logs}}
<table class="table">
<tr>
<th>{{i18n 'user.auth_tokens.ip_address'}}</th>
<th>{{i18n 'user.auth_tokens.created'}}</th>
<th>{{i18n 'user.auth_tokens.operating_system'}}</th>
</tr>
{{#each model.user_auth_token_logs as |token|}}
<tr>
<td>{{token.client_ip}}</td>
<td>{{format-date token.created_at}}</td>
<td>{{d-icon token.icon}} {{token.os}}</td>
</tr>
{{/each}}
</table>
{{/if}}
</div>
{{/if}}
{{/if}}
{{plugin-outlet name="user-preferences-account" args=(hash model=model save=(action "save"))}} {{plugin-outlet name="user-preferences-account" args=(hash model=model save=(action "save"))}}
<br/> <br/>