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
4a1c9ac3
Commit
4a1c9ac3
authored
Feb 11, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added grafana version info to dashboard settings, and link to releases.
parent
1fada5dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
src/app/app.js
+1
-1
src/app/controllers/dash.js
+3
-1
src/app/partials/dasheditor.html
+8
-0
tasks/build_task.js
+4
-0
No files found.
src/app/app.js
View file @
4a1c9ac3
...
@@ -27,7 +27,7 @@ function (angular, $, _, appLevelRequire) {
...
@@ -27,7 +27,7 @@ function (angular, $, _, appLevelRequire) {
register_fns
=
{};
register_fns
=
{};
// This stores the Kibana revision number, @REV@ is replaced by grunt.
// This stores the Kibana revision number, @REV@ is replaced by grunt.
app
.
constant
(
'
kbnVersion'
,
"@REV
@"
);
app
.
constant
(
'
grafanaVersion'
,
"@grafanaVersion
@"
);
// Use this for cache busting partials
// Use this for cache busting partials
app
.
constant
(
'cacheBust'
,
"cache-bust="
+
Date
.
now
());
app
.
constant
(
'cacheBust'
,
"cache-bust="
+
Date
.
now
());
...
...
src/app/controllers/dash.js
View file @
4a1c9ac3
...
@@ -30,7 +30,7 @@ function (angular, $, config, _) {
...
@@ -30,7 +30,7 @@ function (angular, $, config, _) {
var
module
=
angular
.
module
(
'kibana.controllers'
);
var
module
=
angular
.
module
(
'kibana.controllers'
);
module
.
controller
(
'DashCtrl'
,
function
(
module
.
controller
(
'DashCtrl'
,
function
(
$scope
,
$rootScope
,
$route
,
ejsResource
,
dashboard
,
alertSrv
,
panelMove
,
keyboardManager
)
{
$scope
,
$rootScope
,
$route
,
ejsResource
,
dashboard
,
alertSrv
,
panelMove
,
keyboardManager
,
grafanaVersion
)
{
$scope
.
requiredElasticSearchVersion
=
">=0.90.3"
;
$scope
.
requiredElasticSearchVersion
=
">=0.90.3"
;
...
@@ -38,6 +38,8 @@ function (angular, $, config, _) {
...
@@ -38,6 +38,8 @@ function (angular, $, config, _) {
index
:
0
index
:
0
};
};
$scope
.
grafanaVersion
=
grafanaVersion
[
0
]
===
'@'
?
'version: master'
:
grafanaVersion
;
// For moving stuff around the dashboard.
// For moving stuff around the dashboard.
$scope
.
panelMoveDrop
=
panelMove
.
onDrop
;
$scope
.
panelMoveDrop
=
panelMove
.
onDrop
;
$scope
.
panelMoveStart
=
panelMove
.
onStart
;
$scope
.
panelMoveStart
=
panelMove
.
onStart
;
...
...
src/app/partials/dasheditor.html
View file @
4a1c9ac3
...
@@ -141,6 +141,13 @@
...
@@ -141,6 +141,13 @@
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<div
class=
"pull-left"
style=
"padding-top: 15px;"
ng-if=
"editor.index == 0"
>
<span
class=
"editor-option small"
>
Grafana {{grafanaVersion}}
</span>
(
<a
class=
"small"
href=
"https://github.com/torkelo/grafana/releases"
target=
"_blank"
>
check for updates
</a>
)
</div>
<button
ng-click=
"add_row(dashboard.current,row); reset_row();"
class=
"btn btn-success"
ng-show=
"editor.index == 1"
>
Create Row
</button>
<button
ng-click=
"add_row(dashboard.current,row); reset_row();"
class=
"btn btn-success"
ng-show=
"editor.index == 1"
>
Create Row
</button>
<button
type=
"button"
class=
"btn btn-danger"
ng-click=
"editor.index=0;dismiss();reset_panel();dashboard.refresh()"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-danger"
ng-click=
"editor.index=0;dismiss();reset_panel();dashboard.refresh()"
>
Close
</button>
</div>
</div>
\ No newline at end of file
tasks/build_task.js
View file @
4a1c9ac3
...
@@ -32,6 +32,10 @@ module.exports = function(grunt) {
...
@@ -32,6 +32,10 @@ module.exports = function(grunt) {
{
{
pattern
:
/@REV@/
,
pattern
:
/@REV@/
,
replacement
:
desc
.
object
replacement
:
desc
.
object
},
{
pattern
:
/@grafanaVersion@/
,
replacement
:
'v<%= pkg.version %>'
}
}
]
]
}
}
...
...
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