Add status page in UI

This commit is contained in:
Fabian Reinartz 2015-11-02 19:47:12 +01:00
parent 85475d4e50
commit 09e8552cd7
1 changed files with 12 additions and 1 deletions

View File

@ -308,7 +308,14 @@ angular.module('am.services').factory('Status',
angular.module('am.controllers').controller('StatusCtrl',
function($scope, Status) {
Status.get({},
function(data) {
$scope.config = data.data.config;
$scope.versionInfo = data.data.versionInfo;
},
function(data) {
console.log(data.data);
})
}
);
@ -331,6 +338,10 @@ angular.module('am').config(
templateUrl: '/app/partials/silences.html',
controller: 'SilencesCtrl'
}).
when('/status', {
templateUrl: '/app/partials/status.html',
controller: 'StatusCtrl'
}).
otherwise({
redirectTo: '/silences'
});