diff --git a/guacamole/src/main/webapp/app/index/styles/lists.css b/guacamole/src/main/webapp/app/index/styles/lists.css
index ad0a1d542..4f462f41b 100644
--- a/guacamole/src/main/webapp/app/index/styles/lists.css
+++ b/guacamole/src/main/webapp/app/index/styles/lists.css
@@ -73,6 +73,10 @@ div.recent-connections .protocol {
vertical-align: middle;
}
+.caption > * {
+ display: inline-block;
+}
+
.caption .name {
margin-left: 0.25em;
}
diff --git a/guacamole/src/main/webapp/app/index/styles/ui.css b/guacamole/src/main/webapp/app/index/styles/ui.css
index 433b38178..d2d928f54 100644
--- a/guacamole/src/main/webapp/app/index/styles/ui.css
+++ b/guacamole/src/main/webapp/app/index/styles/ui.css
@@ -72,8 +72,8 @@ h2 ~ h2 {
}
div.section {
- margin: 0;
- padding: 1em;
+ margin: 1em;
+ padding: 0;
}
/*
diff --git a/guacamole/src/main/webapp/app/manage/controllers/manageController.js b/guacamole/src/main/webapp/app/manage/controllers/manageController.js
index 80af55931..d83073cd3 100644
--- a/guacamole/src/main/webapp/app/manage/controllers/manageController.js
+++ b/guacamole/src/main/webapp/app/manage/controllers/manageController.js
@@ -55,7 +55,7 @@ angular.module('manage').controller('manageController', ['$scope', '$injector',
*/
$scope.newUsername = "";
- // Retrieve all users for whom we have UPDATE permission
+ // Retrieve all connections for which we have UPDATE permission
connectionGroupService.getConnectionGroupTree(ConnectionGroup.ROOT_IDENTIFIER, PermissionSet.ObjectPermissionType.UPDATE)
.success(function connectionGroupReceived(rootGroup) {
$scope.rootGroup = rootGroup;
diff --git a/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js b/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js
index 3133922fc..672dec7bf 100644
--- a/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js
+++ b/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js
@@ -26,11 +26,16 @@
angular.module('manage').controller('manageUserController', ['$scope', '$injector',
function manageUserController($scope, $injector) {
+ // Required types
+ var ConnectionGroup = $injector.get('ConnectionGroup');
+ var PermissionSet = $injector.get('PermissionSet');
+
// Required services
- var $location = $injector.get('$location');
- var $routeParams = $injector.get('$routeParams');
- var userService = $injector.get('userService');
- var permissionService = $injector.get('permissionService');
+ var $location = $injector.get('$location');
+ var $routeParams = $injector.get('$routeParams');
+ var connectionGroupService = $injector.get('connectionGroupService');
+ var userService = $injector.get('userService');
+ var permissionService = $injector.get('permissionService');
/**
* An action to be provided along with the object sent to showStatus which
@@ -61,7 +66,13 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
$scope.permissions = permissions;
});
- /**
+ // Retrieve all connections for which we have UPDATE permission
+ connectionGroupService.getConnectionGroupTree(ConnectionGroup.ROOT_IDENTIFIER, PermissionSet.ObjectPermissionType.ADMINISTER)
+ .success(function connectionGroupReceived(rootGroup) {
+ $scope.rootGroup = rootGroup;
+ });
+
+ /**
* Cancels all pending edits, returning to the management page.
*/
$scope.cancel = function cancel() {
diff --git a/guacamole/src/main/webapp/app/manage/services/connectionGroupEditModal.js b/guacamole/src/main/webapp/app/manage/services/connectionGroupEditModal.js
deleted file mode 100644
index 70f57903a..000000000
--- a/guacamole/src/main/webapp/app/manage/services/connectionGroupEditModal.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (C) 2014 Glyptodon LLC
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-/**
- * A modal for editing a connection group.
- */
-angular.module('manage').factory('connectionGroupEditModal', ['btfModal',
- function connectionGroupEditModal(btfModal) {
-
- // Create the modal object to be used later to actually create the modal
- return btfModal({
- controller: 'connectionGroupEditModalController',
- controllerAs: 'modal',
- templateUrl: 'app/manage/templates/editableConnectionGroup.html',
- });
-}]);
diff --git a/guacamole/src/main/webapp/app/manage/services/userEditModal.js b/guacamole/src/main/webapp/app/manage/services/userEditModal.js
deleted file mode 100644
index 5dd04d8ad..000000000
--- a/guacamole/src/main/webapp/app/manage/services/userEditModal.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (C) 2014 Glyptodon LLC
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-/**
- * A modal for editing a connection.
- */
-angular.module('manage').factory('userEditModal', ['btfModal',
- function userEditModal(btfModal) {
-
- // Create the modal object to be used later to actually create the modal
- return btfModal({
- controller: 'userEditModalController',
- controllerAs: 'modal',
- templateUrl: 'app/manage/templates/editableUser.html',
- });
-}]);
diff --git a/guacamole/src/main/webapp/app/manage/styles/forms.css b/guacamole/src/main/webapp/app/manage/styles/forms.css
index 656d86a20..0724562e2 100644
--- a/guacamole/src/main/webapp/app/manage/styles/forms.css
+++ b/guacamole/src/main/webapp/app/manage/styles/forms.css
@@ -20,11 +20,7 @@
* THE SOFTWARE.
*/
-.manage .properties table {
- margin: 1em;
-}
-
-.manage .properties table th {
+.manage table.properties th {
text-align: left;
font-weight: normal;
padding-right: 1em;
diff --git a/guacamole/src/main/webapp/app/manage/templates/connection.html b/guacamole/src/main/webapp/app/manage/templates/connection.html
index b92988048..b2d1c770b 100644
--- a/guacamole/src/main/webapp/app/manage/templates/connection.html
+++ b/guacamole/src/main/webapp/app/manage/templates/connection.html
@@ -21,15 +21,12 @@
THE SOFTWARE.
-->
-
diff --git a/guacamole/src/main/webapp/app/manage/templates/manageUser.html b/guacamole/src/main/webapp/app/manage/templates/manageUser.html
index ac97a7c54..01cffb88c 100644
--- a/guacamole/src/main/webapp/app/manage/templates/manageUser.html
+++ b/guacamole/src/main/webapp/app/manage/templates/manageUser.html
@@ -20,41 +20,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
-
-
-