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
53f724f6
Commit
53f724f6
authored
Dec 26, 2013
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
legend aligns with left or right y axis depending on axis afinity
parent
74ad7bb0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
src/app/panels/graphite/editor.html
+5
-0
src/app/panels/graphite/graphiteSrv.js
+2
-2
src/app/panels/graphite/module.html
+4
-1
src/css/bootstrap.dark.min.css
+0
-0
src/vendor/bootstrap/less/grafana.less
+6
-2
No files found.
src/app/panels/graphite/editor.html
View file @
53f724f6
...
@@ -4,6 +4,11 @@
...
@@ -4,6 +4,11 @@
<div
class=
"grafana-target-inner-wrapper"
>
<div
class=
"grafana-target-inner-wrapper"
>
<div
class=
"grafana-target-inner"
>
<div
class=
"grafana-target-inner"
>
<ul
class=
"grafana-target-controls"
>
<ul
class=
"grafana-target-controls"
>
<li
ng-if=
"target.yaxis"
>
<a
class=
"pointer"
ng-click=
"setYAxis()"
>
y
²
</a>
</li>
<li>
<li>
<a
class=
"pointer"
tabindex=
"1"
ng-click=
"showTextEditor = !showTextEditor"
>
<a
class=
"pointer"
tabindex=
"1"
ng-click=
"showTextEditor = !showTextEditor"
>
<i
class=
"icon-pencil"
></i>
<i
class=
"icon-pencil"
></i>
...
...
src/app/panels/graphite/graphiteSrv.js
View file @
53f724f6
...
@@ -95,14 +95,14 @@ function ($, RQ, _, config) {
...
@@ -95,14 +95,14 @@ function ($, RQ, _, config) {
var
found
=
targets
[
0
];
var
found
=
targets
[
0
];
for
(
var
i
=
0
;
i
<
targets
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
targets
.
length
;
i
++
)
{
if
(
targets
[
i
].
target
==
graphiteTargetStr
)
{
if
(
targets
[
i
].
target
==
=
graphiteTargetStr
)
{
found
=
targets
[
i
];
found
=
targets
[
i
];
break
;
break
;
}
}
if
(
targets
[
i
].
target
.
match
(
"'"
+
graphiteTargetStr
+
"'"
))
{
if
(
targets
[
i
].
target
.
match
(
"'"
+
graphiteTargetStr
+
"'"
))
{
found
=
targets
[
i
];
found
=
targets
[
i
];
}
}
}
;
}
return
found
;
return
found
;
}
}
...
...
src/app/panels/graphite/module.html
View file @
53f724f6
...
@@ -88,7 +88,10 @@
...
@@ -88,7 +88,10 @@
</div>
</div>
<div
class=
"grafana-legend-container"
>
<div
class=
"grafana-legend-container"
>
<span
ng-show=
"panel.legend"
ng-repeat=
'series in legend'
class=
"histogram-legend"
>
<span
ng-show=
"panel.legend"
ng-class=
"{'pull-right': series.yaxis === 2}"
ng-repeat=
'series in legend'
class=
"histogram-legend"
>
<i
class=
'icon-circle'
ng-style=
"{color: series.color}"
></i>
<i
class=
'icon-circle'
ng-style=
"{color: series.color}"
></i>
<span
class=
'small histogram-legend-item'
>
<span
class=
'small histogram-legend-item'
>
<span
ng-if=
"panel.show_query"
>
{{series.alias || series.query}}
</span>
<span
ng-if=
"panel.show_query"
>
{{series.alias || series.query}}
</span>
...
...
src/css/bootstrap.dark.min.css
View file @
53f724f6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/vendor/bootstrap/less/grafana.less
View file @
53f724f6
...
@@ -84,10 +84,13 @@
...
@@ -84,10 +84,13 @@
}
}
.grafana-legend-container {
.grafana-legend-container {
text-align: center;
margin: 4px 15px;
text-align: left;
}
}
.panel-full-edit-tabs {
.panel-full-edit-tabs {
margin-top: 10px;
.nav-tabs > li > a {
.nav-tabs > li > a {
line-height: 15px;
line-height: 15px;
padding-top: 6px;
padding-top: 6px;
...
@@ -159,10 +162,11 @@
...
@@ -159,10 +162,11 @@
}
}
.grafana-target-controls {
.grafana-target-controls {
width:
9
0px;
width:
12
0px;
float: right;
float: right;
list-style: none;
list-style: none;
margin: 0;
margin: 0;
text-align: right;
>li {
>li {
display: inline-block;
display: inline-block;
...
...
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