Commit 97934938 by Torkel Ödegaard

Added 404 not found view

parent cdcf88cb
......@@ -8,4 +8,5 @@ define([
'./jsonEditorCtrl',
'./loginCtrl',
'./registerCtrl',
'./errorCtrl',
], function () {});
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;
});
});
});
<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>
......@@ -52,6 +52,7 @@ define([
})
.otherwise({
templateUrl: 'app/partials/error.html',
controller: 'ErrorCtrl'
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment