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
776f1505
Commit
776f1505
authored
Apr 02, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed grafana version in dash settings footer, Fixes #1699
parent
b291b18a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
latest.json
+1
-2
public/app/directives/grafanaVersionCheck.js
+3
-3
public/app/services/contextSrv.js
+4
-3
No files found.
latest.json
View file @
776f1505
{
"version"
:
"1.9.1"
,
"url"
:
"https://grafanarel.s3.amazonaws.com/grafana-1.9.1.tar.gz"
"version"
:
"2.0.0-beta1"
,
}
public/app/directives/grafanaVersionCheck.js
View file @
776f1505
...
...
@@ -6,11 +6,11 @@ function (angular) {
angular
.
module
(
'grafana.directives'
)
.
directive
(
'grafanaVersionCheck'
,
function
(
$http
,
grafanaVersion
)
{
.
directive
(
'grafanaVersionCheck'
,
function
(
$http
,
contextSrv
)
{
return
{
restrict
:
'A'
,
link
:
function
(
scope
,
elem
)
{
if
(
grafanaVersion
[
0
]
===
'@
'
)
{
if
(
contextSrv
.
version
===
'master
'
)
{
return
;
}
...
...
@@ -20,7 +20,7 @@ function (angular) {
return
;
}
if
(
grafanaV
ersion
!==
response
.
data
.
version
)
{
if
(
contextSrv
.
v
ersion
!==
response
.
data
.
version
)
{
elem
.
append
(
'<i class="icon-info-sign"></i> '
+
'<a href="http://grafana.org/download" target="_blank"> '
+
'New version available: '
+
response
.
data
.
version
+
...
...
public/app/services/contextSrv.js
View file @
776f1505
...
...
@@ -2,13 +2,14 @@ define([
'angular'
,
'lodash'
,
'store'
,
'config'
,
],
function
(
angular
,
_
,
store
)
{
function
(
angular
,
_
,
store
,
config
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.services'
);
module
.
service
(
'contextSrv'
,
function
(
grafanaVersion
,
$rootScope
,
$timeout
)
{
module
.
service
(
'contextSrv'
,
function
(
$rootScope
,
$timeout
)
{
var
self
=
this
;
function
User
()
{
...
...
@@ -17,7 +18,7 @@ function (angular, _, store) {
}
}
this
.
version
=
grafanaV
ersion
;
this
.
version
=
config
.
buildInfo
.
v
ersion
;
this
.
lightTheme
=
false
;
this
.
user
=
new
User
();
this
.
isSignedIn
=
this
.
user
.
isSignedIn
;
...
...
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