mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
Updates for showing version on UI.
This commit is contained in:
parent
42d0f968d3
commit
edc10fc96e
@ -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.
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user