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
0c56ae4f
Commit
0c56ae4f
authored
May 05, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more work on, #1944
parent
1e196fc0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
16 deletions
+26
-16
public/app/features/dashboard/dashboardCtrl.js
+1
-1
public/app/features/dashboard/dashboardSrv.js
+2
-2
public/app/features/dashlinks/module.html
+4
-1
public/app/features/dashlinks/module.js
+18
-5
public/app/features/panellinks/linkSrv.js
+0
-1
public/app/partials/submenu.html
+1
-6
No files found.
public/app/features/dashboard/dashboardCtrl.js
View file @
0c56ae4f
...
...
@@ -75,7 +75,7 @@ function (angular, $, config) {
};
$scope
.
updateSubmenuVisibility
=
function
()
{
$scope
.
submenuEnabled
=
$scope
.
dashboard
.
hasTemplateVarsOrAnnotations
();
$scope
.
submenuEnabled
=
$scope
.
dashboard
.
isSubmenuFeaturesEnabled
();
};
$scope
.
setWindowTitleAndTheme
=
function
()
{
...
...
public/app/features/dashboard/dashboardSrv.js
View file @
0c56ae4f
...
...
@@ -146,8 +146,8 @@ function (angular, $, kbn, _, moment) {
row
.
panels
.
push
(
panel
);
};
p
.
hasTemplateVarsOrAnnotations
=
function
()
{
return
this
.
templating
.
list
.
length
>
0
||
this
.
annotations
.
list
.
length
>
0
;
p
.
isSubmenuFeaturesEnabled
=
function
()
{
return
this
.
templating
.
list
.
length
>
0
||
this
.
annotations
.
list
.
length
>
0
||
this
.
links
.
length
>
0
;
};
p
.
getPanelInfoById
=
function
(
panelId
)
{
...
...
public/app/features/dashlinks/module.html
View file @
0c56ae4f
<h5>
dash links
</h5>
<a
class=
"pointer"
>
<i
class=
"fa fa-th-large"
></i>
<span></span>
</a>
public/app/features/dashlinks/module.js
View file @
0c56ae4f
...
...
@@ -13,23 +13,36 @@ function (angular, _) {
dashboard
:
"="
},
restrict
:
'E'
,
controller
:
'DashLinkCtrl'
,
controller
:
'DashLink
Editor
Ctrl'
,
templateUrl
:
'app/features/dashlinks/editor.html'
,
link
:
function
()
{
}
};
}).
directive
(
'dashLink
s'
,
function
(
)
{
}).
directive
(
'dashLink
'
,
function
(
linkSrv
)
{
return
{
scope
:
{
dashboard
:
"="
link
:
"="
},
restrict
:
'E'
,
controller
:
'DashLinkCtrl'
,
templateUrl
:
'app/features/dashlinks/module.html'
,
link
:
function
()
{
link
:
function
(
scope
,
elem
)
{
function
update
()
{
var
linkInfo
=
linkSrv
.
getPanelLinkAnchorInfo
(
scope
.
link
);
elem
.
find
(
"span"
).
text
(
linkInfo
.
title
);
elem
.
find
(
"a"
).
attr
(
"href"
,
linkInfo
.
href
);
}
update
();
scope
.
$on
(
'refresh'
,
update
);
}
};
}).
controller
(
'DashLinkCtrl'
,
function
(
$scope
,
backendSrv
)
{
})
.
controller
(
"DashLinkCtrl"
,
function
(
$scope
)
{
})
.
controller
(
'DashLinkEditorCtrl'
,
function
(
$scope
,
backendSrv
)
{
$scope
.
dashboard
.
links
=
$scope
.
dashboard
.
links
||
[];
...
...
public/app/features/panellinks/linkSrv.js
View file @
0c56ae4f
...
...
@@ -16,7 +16,6 @@ function (angular, kbn) {
info
.
href
=
templateSrv
.
replace
(
link
.
url
||
''
);
info
.
title
=
templateSrv
.
replace
(
link
.
title
||
''
);
info
.
href
+=
'?'
;
}
else
{
info
.
title
=
templateSrv
.
replace
(
link
.
title
||
''
);
...
...
public/app/partials/submenu.html
View file @
0c56ae4f
...
...
@@ -19,12 +19,7 @@
</ul>
<ul
class=
"tight-form-list pull-right"
ng-if=
"dashboard.links.length > 0"
>
<li
ng-repeat=
"link in dashboard.links"
class=
"tight-form-item"
>
<a
class=
"pointer"
>
<i
class=
"fa fa-th-large"
></i>
{{link.title}}
</a>
</li>
<dash-link
ng-repeat=
"link in dashboard.links"
link=
"link"
class=
"tight-form-item"
></dash-link>
</ul>
<div
class=
"clearfix"
></div>
...
...
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