diff --git a/endpoints/api/permission.py b/endpoints/api/permission.py index f855a99f8..819786c07 100644 --- a/endpoints/api/permission.py +++ b/endpoints/api/permission.py @@ -243,7 +243,7 @@ class RepositoryTeamPermission(RepositoryParamResource): 'role': new_permission['role']}, repo=model.get_repository(namespace, repository)) - return role_view(perm), 200 + return wrap_role_view_team(role_view(perm), perm.team), 200 @require_repo_admin @nickname('deleteTeamPermissions') diff --git a/static/css/core-ui.css b/static/css/core-ui.css index b74923d4d..435797185 100644 --- a/static/css/core-ui.css +++ b/static/css/core-ui.css @@ -773,6 +773,11 @@ padding: 10px; } +.co-table.no-lines td { + border-bottom: 0px; + padding: 6px; +} + .co-table thead td { text-transform: uppercase; font-size: 16px; @@ -813,11 +818,34 @@ width: 30px; } +.co-table .add-row-spacer td { + padding: 5px; +} + .co-table .add-row td { + padding-top: 10px; border-top: 2px solid #eee; border-bottom: none; } +.co-table tr.co-table-header-row td { + font-size: 12px; + text-transform: uppercase; + color: #ccc; + border-bottom: none; + padding-left: 10px; + padding-top: 10px; + padding-bottom: 4px; +} + +.co-table tr.co-table-header-row td i.fa { + margin-right: 4px; +} + +.co-table tr.indented-row td:first-child { + padding-left: 28px; +} + .cor-checkable-menu { display: inline-block; } diff --git a/static/css/directives/ui/repository-permissions-table.css b/static/css/directives/ui/repository-permissions-table.css index 8e69007a2..437e6d57e 100644 --- a/static/css/directives/ui/repository-permissions-table.css +++ b/static/css/directives/ui/repository-permissions-table.css @@ -1,3 +1,15 @@ .repository-permissions-table #add-entity-permission { padding-left: 0px; +} + +.repository-permissions-table .user-permission-entity { + position: relative; +} + +.repository-permissions-table .outside-org { + position: absolute; + top: 15px; + left: -2px; + font-size: 16px; + color: #E8BB03; } \ No newline at end of file diff --git a/static/directives/repo-view/repo-panel-settings.html b/static/directives/repo-view/repo-panel-settings.html index efe3c48eb..d28236a01 100644 --- a/static/directives/repo-view/repo-panel-settings.html +++ b/static/directives/repo-view/repo-panel-settings.html @@ -4,7 +4,7 @@
User and Robot Permissions
-
+
@@ -12,7 +12,7 @@
Access Token Permissions
-
+
diff --git a/static/directives/repository-permissions-table.html b/static/directives/repository-permissions-table.html index 96aee36c5..4e008be03 100644 --- a/static/directives/repository-permissions-table.html +++ b/static/directives/repository-permissions-table.html @@ -2,7 +2,7 @@
- +
@@ -12,7 +12,10 @@ - + + + + - + + + + + +
Account Name
Team Permissions
-
+
User and Robot Account Permissions
+
@@ -54,6 +63,8 @@