diff --git a/webclient/app-controller.js b/webclient/app-controller.js
index 92ad01e4f..84cb94dc7 100644
--- a/webclient/app-controller.js
+++ b/webclient/app-controller.js
@@ -31,31 +31,15 @@ angular.module('MatrixWebClientController', ['matrixService'])
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
$scope.location = $location.path();
});
-
-
- // Manage the display of the current config
- $scope.config;
-
- // Toggles the config display
- $scope.showConfig = function() {
- if ($scope.config) {
- $scope.config = undefined;
- }
- else {
- $scope.config = matrixService.config();
- }
- };
-
- $scope.closeConfig = function() {
- if ($scope.config) {
- $scope.config = undefined;
- }
- };
if (matrixService.isUserLoggedIn()) {
// eventStreamService.resume();
}
+ $scope.go = function(url) {
+ $location.url(url);
+ };
+
// Logs the user out
$scope.logout = function() {
// kill the event stream
diff --git a/webclient/app.css b/webclient/app.css
index 207f35f5f..72b38cd95 100644
--- a/webclient/app.css
+++ b/webclient/app.css
@@ -308,18 +308,6 @@ h1 {
float: right;
}
-#config {
- position: absolute;
- z-index: 100;
- top: 100px;
- left: 50%;
- width: 500px;
- margin-left: -250px;
- text-align: center;
- padding: 20px;
- background-color: #aaa;
-}
-
.text_entry_section {
position: fixed;
bottom: 0;
diff --git a/webclient/app.js b/webclient/app.js
index 944b8ec27..f666a63bf 100644
--- a/webclient/app.js
+++ b/webclient/app.js
@@ -20,6 +20,7 @@ var matrixWebClient = angular.module('matrixWebClient', [
'LoginController',
'RoomController',
'RoomsController',
+ 'SettingsController',
'UserController',
'matrixService',
'eventStreamService',
@@ -48,6 +49,10 @@ matrixWebClient.config(['$routeProvider', '$provide', '$httpProvider',
templateUrl: 'rooms/rooms.html',
controller: 'RoomsController'
}).
+ when('/settings', {
+ templateUrl: 'settings/settings.html',
+ controller: 'SettingsController'
+ }).
when('/user/:user_matrix_id', {
templateUrl: 'user/user.html',
controller: 'UserController'
diff --git a/webclient/index.html b/webclient/index.html
index 27d920819..95f682580 100644
--- a/webclient/index.html
+++ b/webclient/index.html
@@ -19,6 +19,7 @@
+
@@ -33,22 +34,13 @@
[matrix]