diff --git a/guacamole/src/main/webapp/app/navigation/services/userPageService.js b/guacamole/src/main/webapp/app/navigation/services/userPageService.js
index 2ff396d56..86453c576 100644
--- a/guacamole/src/main/webapp/app/navigation/services/userPageService.js
+++ b/guacamole/src/main/webapp/app/navigation/services/userPageService.js
@@ -223,6 +223,12 @@ angular.module('navigation').factory('userPageService', ['$injector',
));
}
+ // Add link to user preferences (always accessible)
+ pages.push(new Page(
+ 'USER_MENU.ACTION_MANAGE_PREFERENCES',
+ '/settings/preferences'
+ ));
+
return pages;
};
diff --git a/guacamole/src/main/webapp/app/navigation/styles/user-menu.css b/guacamole/src/main/webapp/app/navigation/styles/user-menu.css
index b2a649233..708c37efc 100644
--- a/guacamole/src/main/webapp/app/navigation/styles/user-menu.css
+++ b/guacamole/src/main/webapp/app/navigation/styles/user-menu.css
@@ -196,7 +196,8 @@
.user-menu .options li a[href="#/settings/users"],
.user-menu .options li a[href="#/settings/connections"],
-.user-menu .options li a[href="#/settings/sessions"] {
+.user-menu .options li a[href="#/settings/sessions"],
+.user-menu .options li a[href="#/settings/preferences"] {
background-image: url('images/action-icons/guac-config-dark.png');
}
diff --git a/guacamole/src/main/webapp/app/settings/directives/guacSettingsPreferences.js b/guacamole/src/main/webapp/app/settings/directives/guacSettingsPreferences.js
new file mode 100644
index 000000000..002624964
--- /dev/null
+++ b/guacamole/src/main/webapp/app/settings/directives/guacSettingsPreferences.js
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2015 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 directive for managing preferences local to the current user.
+ */
+angular.module('settings').directive('guacSettingsPreferences', [function guacSettingsPreferences() {
+
+ return {
+ // Element only
+ restrict: 'E',
+ replace: true,
+
+ scope: {
+ },
+
+ templateUrl: 'app/settings/templates/settingsPreferences.html',
+ controller: ['$scope', '$injector', function settingsPreferencesController($scope, $injector) {
+
+ }]
+ };
+
+}]);
diff --git a/guacamole/src/main/webapp/app/settings/templates/settings.html b/guacamole/src/main/webapp/app/settings/templates/settings.html
index 59ac3d35e..4ba42a616 100644
--- a/guacamole/src/main/webapp/app/settings/templates/settings.html
+++ b/guacamole/src/main/webapp/app/settings/templates/settings.html
@@ -36,5 +36,6 @@ THE SOFTWARE.
TODO
+ +