From 3a2f27136206a0e031f5c59c9d2db8468a122caf Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 9 Apr 2015 15:12:03 -0400 Subject: [PATCH] Slight UI improvements to the teams page: sort members by whether they are a robot, reduce the number displayed to 20, and make users clickable --- static/css/directives/ui/teams-manager.css | 4 ++++ static/directives/teams-manager.html | 9 ++++++--- static/js/directives/focusable-popover-content.js | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/static/css/directives/ui/teams-manager.css b/static/css/directives/ui/teams-manager.css index a36edf5ce..35cd2cfad 100644 --- a/static/css/directives/ui/teams-manager.css +++ b/static/css/directives/ui/teams-manager.css @@ -47,6 +47,10 @@ padding-left: 40px; } +.teams-manager .team-member-list .team-member a { + text-decoration: none !important; +} + .teams-manager .team-member-list .team-member-more { vertical-align: middle; padding-left: 6px; diff --git a/static/directives/teams-manager.html b/static/directives/teams-manager.html index 8191b350f..840cf6dc4 100644 --- a/static/directives/teams-manager.html +++ b/static/directives/teams-manager.html @@ -35,14 +35,17 @@
- + - + + + + {{ members[team.name].members.length - 25 }} more team members. + ng-if="members[team.name].members.length > 20">+ {{ members[team.name].members.length - 20 }} more team members. (Empty Team)
diff --git a/static/js/directives/focusable-popover-content.js b/static/js/directives/focusable-popover-content.js index 98e8a63e6..24324d19c 100644 --- a/static/js/directives/focusable-popover-content.js +++ b/static/js/directives/focusable-popover-content.js @@ -12,7 +12,7 @@ angular.module('quay').directive('focusablePopoverContent', ['$timeout', '$popov if (!scope) { return; } scope.$apply(function() { - if (!scope || !$scope.$hide) { return; } + if (!scope || !scope.$hide) { return; } scope.$hide(); }); };