Added 404 not found view

This commit is contained in:
Torkel Ödegaard 2015-01-08 09:46:11 +01:00
parent cdcf88cbdf
commit 979349388c
4 changed files with 35 additions and 0 deletions

View File

@ -8,4 +8,5 @@ define([
'./jsonEditorCtrl',
'./loginCtrl',
'./registerCtrl',
'./errorCtrl',
], function () {});

View File

@ -0,0 +1,22 @@
define([
'angular',
'app',
'lodash'
],
function (angular) {
'use strict';
var module = angular.module('grafana.controllers');
module.controller('ErrorCtrl', function($scope) {
var showSideMenu = $scope.grafana.sidemenu;
$scope.grafana.sidemenu = false;
$scope.$on('$destroy', function() {
$scope.grafana.sidemenu = showSideMenu;
});
});
});

View File

@ -0,0 +1,11 @@
<div class="row-fluid" style="margin-top: 100px;">
<div class="span2"></div>
<div class="grafana-info-box span8 text-center">
<h3>Page not found (404)</h3>
</div>
<div class="span2"></div>
</div>

View File

@ -52,6 +52,7 @@ define([
})
.otherwise({
templateUrl: 'app/partials/error.html',
controller: 'ErrorCtrl'
});
});