Updates for showing version on UI.

This commit is contained in:
kunw 2016-09-20 15:03:15 +08:00
parent 42d0f968d3
commit edc10fc96e
2 changed files with 1 additions and 3 deletions

View File

@ -113,8 +113,6 @@ func (b *BaseController) Prepare() {
b.SelfRegistration = true b.SelfRegistration = true
} }
b.Data["SelfRegistration"] = b.SelfRegistration b.Data["SelfRegistration"] = b.SelfRegistration
b.Data["Version"] = os.Getenv("VERSION")
} }
// Forward to setup layout and template for content for a page. // Forward to setup layout and template for content for a page.

View File

@ -57,7 +57,7 @@
} }
function about() { function about() {
$scope.$emit('modalTitle', $filter('tr')('about_harbor')); $scope.$emit('modalTitle', $filter('tr')('about_harbor'));
$scope.$emit('modalMessage', $filter('tr')('current_version', [vm.version])); $scope.$emit('modalMessage', $filter('tr')('current_version', [vm.version || 'Unknown']));
var raiseInfo = { var raiseInfo = {
'confirmOnly': true, 'confirmOnly': true,
'contentType': 'text/html', 'contentType': 'text/html',