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
92c3d801
Commit
92c3d801
authored
Jan 10, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SingleStatPanel: You can now use template variables in pre & postfix, Closes #1321
parent
4edf0c97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
CHANGELOG.md
+1
-0
src/app/panels/singlestat/singleStatPanel.js
+2
-1
No files found.
CHANGELOG.md
View file @
92c3d801
...
...
@@ -3,6 +3,7 @@
**Enhancements**
-
[
Issue #1297
](
https://github.com/grafana/grafana/issues/1297
)
. Graphite: Added cumulative and minimumBelow graphite functions
-
[
Issue #1296
](
https://github.com/grafana/grafana/issues/1296
)
. InfluxDB: Auto escape column names with special characters. Thanks @steven-aerts
-
[
Issue #1321
](
https://github.com/grafana/grafana/issues/1321
)
. SingleStatPanel: You can now use template variables in pre & postfix
**Fixes**
-
[
Issue #1298
](
https://github.com/grafana/grafana/issues/1298
)
. InfluxDB: Fix handling of empty array in templating variable query
...
...
src/app/panels/singlestat/singleStatPanel.js
View file @
92c3d801
...
...
@@ -11,7 +11,7 @@ function (angular, app, _, $) {
var
module
=
angular
.
module
(
'grafana.panels.singlestat'
,
[]);
app
.
useModule
(
module
);
module
.
directive
(
'singlestatPanel'
,
function
(
$location
,
linkSrv
,
$timeout
)
{
module
.
directive
(
'singlestatPanel'
,
function
(
$location
,
linkSrv
,
$timeout
,
templateSrv
)
{
return
{
link
:
function
(
scope
,
elem
)
{
...
...
@@ -63,6 +63,7 @@ function (angular, app, _, $) {
}
function
getSpan
(
className
,
fontSize
,
value
)
{
value
=
templateSrv
.
replace
(
value
);
return
'<span class="'
+
className
+
'" style="font-size:'
+
fontSize
+
'">'
+
value
+
'</span>'
;
}
...
...
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