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
2b58b6b5
Commit
2b58b6b5
authored
Dec 15, 2015
by
Carl Bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3304 from utkarshcmu/info
Added metadata info panel
parents
3868a796
384292b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
public/app/features/dashboard/dashboardCtrl.js
+6
-1
public/app/features/dashboard/partials/settings.html
+31
-1
No files found.
public/app/features/dashboard/dashboardCtrl.js
View file @
2b58b6b5
...
@@ -2,8 +2,9 @@ define([
...
@@ -2,8 +2,9 @@ define([
'angular'
,
'angular'
,
'jquery'
,
'jquery'
,
'app/core/config'
,
'app/core/config'
,
'moment'
,
],
],
function
(
angular
,
$
,
config
)
{
function
(
angular
,
$
,
config
,
moment
)
{
"use strict"
;
"use strict"
;
var
module
=
angular
.
module
(
'grafana.controllers'
);
var
module
=
angular
.
module
(
'grafana.controllers'
);
...
@@ -149,6 +150,10 @@ function (angular, $, config) {
...
@@ -149,6 +150,10 @@ function (angular, $, config) {
});
});
};
};
$scope
.
formatDate
=
function
(
date
)
{
return
moment
(
date
).
format
(
'MMM Do YYYY, h:mm:ss a'
);
};
});
});
});
});
public/app/features/dashboard/partials/settings.html
View file @
2b58b6b5
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</div>
</div>
<div
ng-model=
"editor.index"
bs-tabs
style=
"text-transform:capitalize;"
>
<div
ng-model=
"editor.index"
bs-tabs
style=
"text-transform:capitalize;"
>
<div
ng-repeat=
"tab in ['General', 'Rows', 'Links', 'Time picker']"
data-title=
"{{tab}}"
>
<div
ng-repeat=
"tab in ['General', 'Rows', 'Links', 'Time picker'
, 'Metadata'
]"
data-title=
"{{tab}}"
>
</div>
</div>
</div>
</div>
...
@@ -114,6 +114,36 @@
...
@@ -114,6 +114,36 @@
<gf-time-picker-settings
dashboard=
"dashboard"
></gf-time-picker-settings>
<gf-time-picker-settings
dashboard=
"dashboard"
></gf-time-picker-settings>
</div>
</div>
<div
ng-if=
"editor.index == 4"
>
<div
class=
"editor-row"
>
<div
class=
"tight-form-section"
>
<h5>
Info
</h5>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 120px"
>
Last updated at:
</li>
<li
class=
"tight-form-item"
style=
"width: 180px"
>
{{formatDate(dashboardMeta.updated)}}
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 120px"
>
Created at:
</li>
<li
class=
"tight-form-item"
style=
"width: 180px"
>
{{formatDate(dashboardMeta.created)}}
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></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