diff --git a/static/css/core-ui.css b/static/css/core-ui.css
index 8a6f1ae08..68b326c80 100644
--- a/static/css/core-ui.css
+++ b/static/css/core-ui.css
@@ -1176,7 +1176,7 @@ a:focus {
@media (max-width: 767px) {
.co-table tr.indented-row td:first-child {
- padding-left: 0px;
+ padding-left: 10px;
}
}
diff --git a/static/css/pages/team-view.css b/static/css/pages/team-view.css
index cf80b8004..86cb7b6de 100644
--- a/static/css/pages/team-view.css
+++ b/static/css/pages/team-view.css
@@ -1,5 +1,6 @@
.team-view .co-main-content-panel {
padding: 20px;
+ position: relative;
}
.team-view .team-title {
@@ -58,4 +59,10 @@
.team-view .co-table-header-row:first-child td {
padding-top: 10px !important;
+}
+
+.team-view .section-header {
+ text-align: left;
+ color: #aaa;
+ margin-bottom: 20px;
}
\ No newline at end of file
diff --git a/static/css/quay.css b/static/css/quay.css
index 0088fda4f..5cf7b92ee 100644
--- a/static/css/quay.css
+++ b/static/css/quay.css
@@ -2456,34 +2456,6 @@ p.editable:hover i {
min-height: 50px;
}
-.team-view .panel {
- display: inline-block;
- width: 620px;
-}
-
-.team-view .entity {
- font-size: 1.2em;
- min-width: 510px;
-}
-
-.team-view .entity i {
- margin-right: 6px;
-}
-
-.team-view .entity-search {
- margin-top: 10px;
-}
-
-.team-view .delete-ui {
- display: inline-block;
- width: 78px;
-}
-
-.team-view .delete-ui i {
- margin-top: 8px;
- float: right;
-}
-
.org-view .team-listing {
padding: 4px;
}
diff --git a/static/directives/team-view-add.html b/static/directives/team-view-add.html
index 4063ce477..88c747d2f 100644
--- a/static/directives/team-view-add.html
+++ b/static/directives/team-view-add.html
@@ -1,6 +1,6 @@
-
+
Search by registry username, robot account name or enter an email address to invite
Search by registry username or robot account name
diff --git a/static/js/pages/team-view.js b/static/js/pages/team-view.js
index 92a308ecf..0215ab080 100644
--- a/static/js/pages/team-view.js
+++ b/static/js/pages/team-view.js
@@ -19,6 +19,7 @@
$scope.addingMember = false;
$scope.memberMap = null;
$scope.allowEmail = Features.MAILING;
+ $scope.feedback = null;
$rootScope.title = 'Loading...';
@@ -49,6 +50,14 @@
$scope.members.push(resp);
$scope.memberMap[resp.email] = resp;
$scope.addingMember = false;
+
+ $scope.feedback = {
+ 'kind': 'success',
+ 'message': 'E-mail address {email} was invited to join the team',
+ 'data': {
+ 'email': email
+ }
+ };
}, errorHandler);
};
@@ -70,6 +79,14 @@
$scope.members.push(resp);
$scope.memberMap[resp.name] = resp;
$scope.addingMember = false;
+
+ $scope.feedback = {
+ 'kind': 'success',
+ 'message': 'User {username} was added to the team',
+ 'data': {
+ 'username': member.name
+ }
+ };
}, errorHandler);
};
@@ -95,6 +112,14 @@
var index = $.inArray($scope.memberMap[email], $scope.members);
$scope.members.splice(index, 1);
delete $scope.memberMap[email];
+
+ $scope.feedback = {
+ 'kind': 'success',
+ 'message': 'Invitation to e-amil address {email} was revoked',
+ 'data': {
+ 'email': email
+ }
+ };
}, ApiService.errorDisplay('Cannot revoke team invite'));
};
@@ -110,6 +135,14 @@
var index = $.inArray($scope.memberMap[username], $scope.members);
$scope.members.splice(index, 1);
delete $scope.memberMap[username];
+
+ $scope.feedback = {
+ 'kind': 'success',
+ 'message': 'User {username} was removed from the team',
+ 'data': {
+ 'username': username
+ }
+ };
}, ApiService.errorDisplay('Cannot remove team member'));
};
@@ -123,6 +156,11 @@
var teaminfo = $scope.organization.teams[teamname];
ApiService.updateOrganizationTeam(teaminfo, params).then(function(resp) {
+ $scope.feedback = {
+ 'kind': 'success',
+ 'message': 'Team description changed',
+ 'data': {}
+ };
}, function() {
$('#cannotChangeTeamModal').modal({});
});
diff --git a/static/partials/team-view.html b/static/partials/team-view.html
index 3be10010b..5be2d58c5 100644
--- a/static/partials/team-view.html
+++ b/static/partials/team-view.html
@@ -16,27 +16,25 @@
-