Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
97934938
Commit
97934938
authored
Jan 08, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 404 not found view
parent
cdcf88cb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
0 deletions
+35
-0
src/app/controllers/all.js
+1
-0
src/app/controllers/errorCtrl.js
+22
-0
src/app/partials/error.html
+11
-0
src/app/routes/backend/all.js
+1
-0
No files found.
src/app/controllers/all.js
View file @
97934938
...
...
@@ -8,4 +8,5 @@ define([
'./jsonEditorCtrl'
,
'./loginCtrl'
,
'./registerCtrl'
,
'./errorCtrl'
,
],
function
()
{});
src/app/controllers/errorCtrl.js
0 → 100644
View file @
97934938
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
;
});
});
});
src/app/partials/error.html
0 → 100644
View file @
97934938
<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>
src/app/routes/backend/all.js
View file @
97934938
...
...
@@ -52,6 +52,7 @@ define([
})
.
otherwise
({
templateUrl
:
'app/partials/error.html'
,
controller
:
'ErrorCtrl'
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment