Added 404 not found view

pull/1442/head
Torkel Ödegaard 11 years ago
parent cdcf88cbdf
commit 979349388c
  1. 1
      src/app/controllers/all.js
  2. 22
      src/app/controllers/errorCtrl.js
  3. 11
      src/app/partials/error.html
  4. 1
      src/app/routes/backend/all.js

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

@ -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;
});
});
});

@ -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>

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

Loading…
Cancel
Save