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
6969a412
Commit
6969a412
authored
Aug 25, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing pulldowns and simplifying submenu controls code
parent
4f8b2ad2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
12 deletions
+43
-12
src/app/controllers/dashboardCtrl.js
+3
-0
src/app/controllers/submenuCtrl.js
+1
-2
src/app/partials/dashboard.html
+1
-10
src/app/partials/submenu.html
+38
-0
No files found.
src/app/controllers/dashboardCtrl.js
View file @
6969a412
...
...
@@ -48,6 +48,9 @@ function (angular, $, config, _) {
$scope
.
filter
=
filterSrv
;
$scope
.
filter
.
init
(
$scope
.
dashboard
);
$scope
.
submenuEnabled
=
$scope
.
dashboard
.
templating
.
enable
||
$scope
.
dashboard
.
annotations
.
enable
;
var
panelMove
=
panelMoveSrv
.
create
(
$scope
.
dashboard
);
$scope
.
panelMoveDrop
=
panelMove
.
onDrop
;
...
...
src/app/controllers/submenuCtrl.js
View file @
6969a412
...
...
@@ -24,4 +24,4 @@ function (angular, app, _) {
});
});
\ No newline at end of file
});
src/app/partials/dashboard.html
View file @
6969a412
...
...
@@ -3,16 +3,7 @@
<div
ng-include=
"'app/partials/dashboard_topnav.html'"
>
</div>
<div
class=
"submenu-controls"
>
<div
class=
"submenu-panel"
ng-controller=
"SubmenuCtrl"
ng-repeat=
"pulldown in dashboard.pulldowns | filter:{ enable: true }"
>
<div
class=
"submenu-panel-title"
>
<span
class=
"small"
><strong>
{{pulldown.type}}:
</strong></span>
</div>
<div
class=
"submenu-panel-wrapper"
>
<grafana-simple-panel
type=
"pulldown.type"
ng-cloak
></grafana-simple-panel>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
ng-if=
"submenuEnabled"
ng-include=
"'app/partials/submenu.html'"
>
</div>
<div
class=
"clearfix"
></div>
...
...
src/app/partials/submenu.html
0 → 100644
View file @
6969a412
<div
class=
"submenu-controls"
ng-controller=
"SubmenuCtrl"
>
<div
class=
"grafana-target"
>
<div
class=
"grafana-target-inner-wrapper"
>
<div
class=
"grafana-target-inner"
>
<ul
class=
"grafana-target-controls-left"
>
<li
class=
"grafana-target-segment"
>
<i
class=
"icon-remove pointer"
></i>
</li>
</ul>
<ul
class=
"grafana-segment-list"
>
<li
ng-repeat=
"filter in filter.templateParameters"
class=
"grafana-target-segment"
>
<div
class=
"dropdown"
>
{{filter.name}} =
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
{{filter.current.text}}
</a>
<ul
class=
"dropdown-menu"
>
<li
ng-repeat=
"option in filter.options"
>
<a
ng-click=
"filterOptionSelected(filter, option)"
>
{{option.text}}
</a>
</li>
</ul>
</div>
</li>
<li
ng-repeat=
"annotation in dashboard.annotations.list"
class=
"grafana-target-segment"
ng-class=
"{'annotation-disabled': !annotation.enable }"
>
<i
class=
"annotation-color-icon icon-minus"
></i>
<a
ng-click=
"hide(annotation)"
class=
"small"
>
{{annotation.name}}
</a>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
</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