From f1a52138d69d69cacf31e495855209fa42cf1d60 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Thu, 11 Oct 2018 14:22:30 +0300 Subject: [PATCH] UX: Move Recently Used Devices to the bottom. (#6483) --- .../templates/preferences/account.hbs | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/preferences/account.hbs b/app/assets/javascripts/discourse/templates/preferences/account.hbs index b6985ba8d3a..b68ce331173 100644 --- a/app/assets/javascripts/discourse/templates/preferences/account.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/account.hbs @@ -51,48 +51,6 @@ {{/if}} -{{#if canCheckEmails}} -
- - -
- {{#each authTokens as |token|}} -
-
{{d-icon token.icon}}
- {{#unless token.is_active}} - {{auth-token-dropdown token=token - revokeAuthToken=(action "revokeAuthToken") - showToken=(action "showToken")}} - {{/unless}} -
- {{token.device}}{{token.location}} -
-
- {{token.browser}} | - {{#if token.is_active}} - {{i18n 'user.auth_tokens.active'}} - {{else}} - {{format-date token.seen_at}} - {{/if}} -
-
- {{/each}} -
- - {{#if canShowAllAuthTokens}} - - {{#if showAllAuthTokens}} - {{d-icon "caret-up"}} {{i18n 'user.auth_tokens.show_few'}} - {{else}} - {{d-icon "caret-down"}} {{i18n 'user.auth_tokens.show_all' count=model.user_auth_tokens.length}} - {{/if}} - - {{/if}} - - {{d-icon "sign-out"}} {{i18n 'user.auth_tokens.log_out_all'}} -
-{{/if}} - {{#if canChangePassword}}
@@ -203,6 +161,48 @@
{{/if}} +{{#if canCheckEmails}} +
+ + +
+ {{#each authTokens as |token|}} +
+
{{d-icon token.icon}}
+ {{#unless token.is_active}} + {{auth-token-dropdown token=token + revokeAuthToken=(action "revokeAuthToken") + showToken=(action "showToken")}} + {{/unless}} +
+ {{token.device}}{{token.location}} +
+
+ {{token.browser}} | + {{#if token.is_active}} + {{i18n 'user.auth_tokens.active'}} + {{else}} + {{format-date token.seen_at}} + {{/if}} +
+
+ {{/each}} +
+ + {{#if canShowAllAuthTokens}} + + {{#if showAllAuthTokens}} + {{d-icon "caret-up"}} {{i18n 'user.auth_tokens.show_few'}} + {{else}} + {{d-icon "caret-down"}} {{i18n 'user.auth_tokens.show_all' count=model.user_auth_tokens.length}} + {{/if}} + + {{/if}} + + {{d-icon "sign-out"}} {{i18n 'user.auth_tokens.log_out_all'}} +
+{{/if}} + {{plugin-outlet name="user-preferences-account" args=(hash model=model save=(action "save"))}}