Commit 72d95322 by Torkel Ödegaard

updated login view with build info

parent d1b31bb3
......@@ -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
......
......@@ -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();
......
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment