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
84609a4a
Commit
84609a4a
authored
Feb 01, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(panel links): changed icon back
parent
0b25a29a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
public/app/features/dashboard/dashnav/dashnav.html
+11
-7
public/app/features/panel/panel_menu.js
+4
-3
No files found.
public/app/features/dashboard/dashnav/dashnav.html
View file @
84609a4a
...
...
@@ -27,13 +27,17 @@
<li
ng-show=
"dashboardMeta.canShare"
class=
"dropdown"
>
<a
class=
"pointer"
ng-click=
"hideTooltip($event)"
bs-tooltip=
"'Share dashboard'"
data-placement=
"bottom"
data-toggle=
"dropdown"
><i
class=
"fa fa-share-square-o"
></i></a>
<ul
class=
"dropdown-menu"
>
<li
ng-if=
"dashboardMeta.canEdit"
><a
class=
"pointer"
ng-click=
"shareDashboard(0)"
>
<i
class=
"fa fa-link"
></i>
Link to Dashboard
</a></li>
<li
ng-if=
"dashboardMeta.canEdit"
><a
class=
"pointer"
ng-click=
"shareDashboard(1)"
>
<i
class=
"gf-icon gf-icon-snap-multi"
></i>
Snapshot sharing
</a></li>
</ul>
<li
ng-if=
"dashboardMeta.canEdit"
>
<a
class=
"pointer"
ng-click=
"shareDashboard(0)"
>
<i
class=
"fa fa-link"
></i>
Link to Dashboard
</a>
</li>
<li
ng-if=
"dashboardMeta.canEdit"
>
<a
class=
"pointer"
ng-click=
"shareDashboard(1)"
>
<i
class=
"icon-gf icon-gf-snapshot"
></i>
Snapshot sharing
</a>
</li>
</ul>
</li>
<li
ng-show=
"dashboardMeta.canSave"
>
<a
ng-click=
"saveDashboard()"
bs-tooltip=
"'Save dashboard'"
data-placement=
"bottom"
><i
class=
"fa fa-save"
></i></a>
...
...
public/app/features/panel/panel_menu.js
View file @
84609a4a
...
...
@@ -12,7 +12,7 @@ function (angular, $, _) {
var
linkTemplate
=
'<span class="panel-title drag-handle pointer">'
+
'<span class="panel-title-text drag-handle">{{ctrl.panel.title | interpolateTemplateVars:this}}</span>'
+
'<span class="panel-links-btn"><i class="fa fa-link"></i></span>'
+
'<span class="panel-links-btn"><i class="fa fa-
external-
link"></i></span>'
+
'<span class="panel-time-info" ng-show="ctrl.timeInfo"><i class="fa fa-clock-o"></i> {{ctrl.timeInfo}}</span>'
+
'</span>'
;
...
...
@@ -28,6 +28,7 @@ function (angular, $, _) {
}
return
template
;
}
function
createMenuTemplate
(
ctrl
)
{
var
template
=
'<div class="panel-menu small">'
;
...
...
@@ -124,8 +125,8 @@ function (angular, $, _) {
}
var
menuTemplate
;
if
(
$
(
e
.
target
).
hasClass
(
'fa-link'
))
{
menuTemplate
=
createExternalLinkMenu
(
$scope
);
if
(
$
(
e
.
target
).
hasClass
(
'fa-
external-
link'
))
{
menuTemplate
=
createExternalLinkMenu
(
ctrl
);
}
else
{
menuTemplate
=
createMenuTemplate
(
ctrl
);
}
...
...
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