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
40a95bed
Commit
40a95bed
authored
Nov 07, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked pulldown editor path
parent
d3495ff7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
src/app/controllers/dash.js
+11
-2
src/app/partials/dasheditor.html
+1
-1
No files found.
src/app/controllers/dash.js
View file @
40a95bed
...
@@ -68,9 +68,18 @@ function (angular, config, _) {
...
@@ -68,9 +68,18 @@ function (angular, config, _) {
return
{
'min-height'
:
row
.
collapse
?
'5px'
:
row
.
height
};
return
{
'min-height'
:
row
.
collapse
?
'5px'
:
row
.
height
};
};
};
$scope
.
edit_path
=
function
(
type
)
{
$scope
.
panel_path
=
function
(
type
)
{
if
(
type
)
{
if
(
type
)
{
return
'app/panels/'
+
type
.
replace
(
"."
,
"/"
)
+
'/editor.html'
;
return
'app/panels/'
+
type
.
replace
(
"."
,
"/"
);
}
else
{
return
false
;
}
};
$scope
.
edit_path
=
function
(
type
)
{
var
p
=
$scope
.
panel_path
(
type
);
if
(
p
)
{
return
p
+
'/editor.html'
;
}
else
{
}
else
{
return
false
;
return
false
;
}
}
...
...
src/app/partials/dasheditor.html
View file @
40a95bed
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
</div>
</div>
<div
ng-repeat=
"pulldown in dashboard.current.nav"
ng-controller=
"PulldownCtrl"
ng-show=
"editor.index == 4+$index"
>
<div
ng-repeat=
"pulldown in dashboard.current.nav"
ng-controller=
"PulldownCtrl"
ng-show=
"editor.index == 4+$index"
>
<ng-include
ng-show=
"pulldown.enable"
src=
"
'./app/panels/'+pulldown.type+'/editor.html'
"
></ng-include>
<ng-include
ng-show=
"pulldown.enable"
src=
"
edit_path(pulldown.type)
"
></ng-include>
<button
ng-hide=
"pulldown.enable"
class=
"btn"
ng-click=
"pulldown.enable = true"
>
Enable the {{pulldown.type}}
</button>
<button
ng-hide=
"pulldown.enable"
class=
"btn"
ng-click=
"pulldown.enable = true"
>
Enable the {{pulldown.type}}
</button>
</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