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
72d95322
Commit
72d95322
authored
Jan 05, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated login view with build info
parent
d1b31bb3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletions
+25
-1
src/app/components/settings.js
+6
-1
src/app/controllers/loginCtrl.js
+7
-0
src/app/partials/login.html
+12
-0
No files found.
src/app/components/settings.js
View file @
72d95322
...
...
@@ -26,7 +26,12 @@ function (_, crypto) {
unsaved_changes_warning
:
true
,
search
:
{
max_results
:
100
},
admin
:
{},
appSubUrl
:
""
appSubUrl
:
""
,
buildInfo
:
{
version
:
'master'
,
commit
:
'NA'
,
buildstamp
:
new
Date
().
getTime
()
}
};
// This initializes a new hash on purpose, to avoid adding parameters to
...
...
src/app/controllers/loginCtrl.js
View file @
72d95322
...
...
@@ -11,6 +11,13 @@ function (angular, config) {
$scope
.
loginModel
=
{};
$scope
.
grafana
.
sidemenu
=
false
;
// build info view model
$scope
.
buildInfo
=
{
version
:
config
.
buildInfo
.
version
,
commit
:
config
.
buildInfo
.
commit
,
buildstamp
:
new
Date
(
config
.
buildInfo
.
buildstamp
*
1000
)
};
$scope
.
init
=
function
()
{
if
(
$routeParams
.
logout
)
{
$scope
.
logout
();
...
...
src/app/partials/login.html
View file @
72d95322
...
...
@@ -42,4 +42,16 @@
</div>
</div>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"row"
style=
"margin-top: 100px"
>
<div
class=
"version-footer text-center small"
>
Grafana version: {{buildInfo.version}}, commit: {{buildInfo.commit}},
build date: {{buildInfo.buildstamp | date: 'yyyy-MM-dd HH:mm:ss' }}
</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