mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-11 22:20:00 +01:00
Merge pull request #821 from wknet123/dev
Updates for showing version on UI.
This commit is contained in:
commit
40858761d8
@ -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.
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user