Merge pull request #821 from wknet123/dev

Updates for showing version on UI.
This commit is contained in:
Daniel Jiang 2016-09-20 16:42:16 +08:00 committed by GitHub
commit 40858761d8
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -57,7 +57,7 @@
}
function about() {
$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 = {
'confirmOnly': true,
'contentType': 'text/html',