From dea7de2db4b5721c06a52980eff2dd46ca222749 Mon Sep 17 00:00:00 2001 From: Paul Adam Davis Date: Mon, 13 Oct 2014 22:43:03 +0100 Subject: [PATCH] Rename .object-list to .user-list No issue References todo comment in [users.scss](https://github.com/TryGhost/Ghost/blob/ed5f5c7fe1278da7e1ae6678f3e9f68f2f30261c/core/client/assets/sass/layouts/users.scss#L6-L7) - Renames anything starting with `.object-list` to `.user-list` - Adjusts tests to match --- ghost/admin/assets/sass/layouts/users.scss | 43 ++++++++++--------- .../admin/templates/settings/users/index.hbs | 34 ++++++--------- 2 files changed, 37 insertions(+), 40 deletions(-) diff --git a/ghost/admin/assets/sass/layouts/users.scss b/ghost/admin/assets/sass/layouts/users.scss index cd798d8c7d..cc62df7e46 100644 --- a/ghost/admin/assets/sass/layouts/users.scss +++ b/ghost/admin/assets/sass/layouts/users.scss @@ -3,21 +3,20 @@ // -------------------------------------------------- // Slug: /ghost/settings/users/ // -------------------------------------------------- -// TODO: Rename everything. This is a layout, rather -// than a re-usable component. + .invited-users { margin-bottom: 34px; } -.object-list-title { +.user-list-title { font-size: 13px; font-weight: normal; color: $midbrown; margin-bottom: 14px; } -.object-list-item { +.user-list-item { @media (max-width: 500px) { display: block; @@ -37,17 +36,21 @@ } -a.object-list-item { +a.user-list-item { text-decoration: none; // Hover states only for large viewports @media (min-width: 601px) { - &:hover { background: lighten($lightbrown, 5%); } - &:last-of-type:hover { box-shadow: inset 0px -1px 0px $lightbrown; } + &:hover { + background: lighten($lightbrown, 5%); + } + &:last-of-type:hover { + box-shadow: inset 0px -1px 0px $lightbrown; + } } } -.object-list-item-icon { +.user-list-item-icon { width: 35px; height: 35px; display: block; @@ -70,7 +73,7 @@ a.object-list-item { } } -.object-list-item-figure { +.user-list-item-figure { width: 35px; height: 35px; display: block; @@ -80,15 +83,15 @@ a.object-list-item { background-position: center center; } -.object-list-item-icon, -.object-list-item-figure { +.user-list-item-icon, +.user-list-item-figure { @media (max-width: 500px) { float: left; margin-right: 15px; } } -.object-list-item-body { +.user-list-item-body { flex: 1 1 auto; align-items: stretch; padding-left: 15px; @@ -112,16 +115,16 @@ a.object-list-item { margin-top: 3px; } -} //.object-list-item-body +}//.user-list-item-body -.object-list-item-aside { +.user-list-item-aside { @media (max-width: 500px) { float: left; width: 100%; margin: 12px 0 0 50px; } - .object-list-action:not(:first-of-type) { + .user-list-action:not(:first-of-type) { margin-left: 20px; @media (min-width: 501px) { margin-left: 50px; @@ -136,9 +139,9 @@ a.object-list-item { .role-label + .role-label { margin-left: 5px; } -} // .object-list-item-aside +}//.user-list-item-aside -.object-list-action { +.user-list-action { font-size: 11px; text-transform: uppercase; text-decoration: underline; @@ -178,7 +181,7 @@ a.object-list-item { background: $blue; } -} +}//.role-label // // User Actions @@ -231,7 +234,7 @@ a.object-list-item { width: 100%; } - } //.form-group + }//.form-group .button-add { width: 100%; @@ -240,4 +243,4 @@ a.object-list-item { line-height: 16px; } -} //.invite-new-user +}//.invite-new-user \ No newline at end of file diff --git a/ghost/admin/templates/settings/users/index.hbs b/ghost/admin/templates/settings/users/index.hbs index 8350cd68ba..62b521864e 100644 --- a/ghost/admin/templates/settings/users/index.hbs +++ b/ghost/admin/templates/settings/users/index.hbs @@ -1,9 +1,3 @@ - -
{{#link-to "settings" class="btn btn-default btn-back"}}Back{{/link-to}}

Users

@@ -15,15 +9,15 @@ $(document).ready(function() { {{#view "settings/users/users-list-view" tagName="section" class="content settings-users" }} {{#if invitedUsers}} -
+
-

Invited users

+

Invited users

{{#each invitedUsers itemController="settings/users/user"}} -
- ic +
+ ic -
+
{{email}}
{{#if pending}} Invitation not sent - please try again @@ -31,9 +25,9 @@ $(document).ready(function() { Invitation sent: {{created_at}} {{/if}}
-
{{/each}} @@ -42,24 +36,24 @@ $(document).ready(function() { {{/if}} -
+
-

Active users

+

Active users

{{#each activeUsers itemController="settings/users/user"}} - {{#link-to 'settings.users.user' this class="object-list-item" }} - + {{#link-to 'settings.users.user' this class="user-list-item" }} + -
+
{{name}}
Last seen: {{unbound last_login}}
-