A platform for community discussion. Free, open, simple.
UX: remove auth token log from user page
Sam155eb02c7ec6
diff --git a/app/assets/javascripts/discourse/templates/preferences/account.hbs b/app/assets/javascripts/discourse/templates/preferences/account.hbsindex a99d9c57f45..276caf9c0f0 100644--- a/app/assets/javascripts/discourse/templates/preferences/account.hbs+++ b/app/assets/javascripts/discourse/templates/preferences/account.hbs@@ -161,74 +161,6 @@</div>{{/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">— {{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"))}}<br/>