[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request goharbor#821 from wknet123/dev
Browse files Browse the repository at this point in the history
Updates for showing version on UI.
  • Loading branch information
Daniel Jiang committed Sep 20, 2016
2 parents 03c6a7a + edc10fc commit 4085876
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions controllers/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4085876

Please sign in to comment.