diff --git a/controllers/ng/repository.go b/controllers/ng/repository.go index cb4d52de9..696def246 100644 --- a/controllers/ng/repository.go +++ b/controllers/ng/repository.go @@ -1,9 +1,12 @@ package ng +import "os" + type RepositoryController struct { BaseController } func (rc *RepositoryController) Get() { + rc.Data["HarborRegUrl"] = os.Getenv("HARBOR_REG_URL") rc.Forward("Repository", "repository.htm") } diff --git a/static/ng/resources/js/components/repository/list-tag.directive.html b/static/ng/resources/js/components/repository/list-tag.directive.html index 8308acc0f..d9057bcde 100644 --- a/static/ng/resources/js/components/repository/list-tag.directive.html +++ b/static/ng/resources/js/components/repository/list-tag.directive.html @@ -3,8 +3,8 @@ - - + + diff --git a/static/ng/resources/js/components/repository/pull-command.directive.html b/static/ng/resources/js/components/repository/pull-command.directive.html index 4669c1311..6a38a8d3f 100644 --- a/static/ng/resources/js/components/repository/pull-command.directive.html +++ b/static/ng/resources/js/components/repository/pull-command.directive.html @@ -1,7 +1,7 @@
- +
diff --git a/static/ng/resources/js/components/repository/pull-command.directive.js b/static/ng/resources/js/components/repository/pull-command.directive.js index 68868aeb2..b7a8176f5 100644 --- a/static/ng/resources/js/components/repository/pull-command.directive.js +++ b/static/ng/resources/js/components/repository/pull-command.directive.js @@ -26,7 +26,9 @@ return directive; function link(scope, element, attrs, ctrl) { - + + ctrl.harborRegUrl = $('#HarborRegUrl').val() + '/'; + ZeroClipboard.config( { swfPath: "/static/ng/vendors/zc/v2.2.0/ZeroClipboard.swf" } ); var clip = new ZeroClipboard(element.find('a')); element.find('span').tooltip({'trigger': 'click'}); diff --git a/static/ng/resources/js/components/sign-in/sign-in.directive.html b/static/ng/resources/js/components/sign-in/sign-in.directive.html index bf78635f2..06f4d3c82 100644 --- a/static/ng/resources/js/components/sign-in/sign-in.directive.html +++ b/static/ng/resources/js/components/sign-in/sign-in.directive.html @@ -1,7 +1,7 @@
- +
// 'username_is_required' | tr // @@ -11,7 +11,7 @@
- +
// 'password_is_required' | tr // diff --git a/views/ng/repository.htm b/views/ng/repository.htm index 100eec7e9..0cb55469c 100644 --- a/views/ng/repository.htm +++ b/views/ng/repository.htm @@ -18,6 +18,7 @@
+
// 'tag' | tr //// 'image_details' | tr //// 'pull_command' | tr //// 'image_details' | tr //// 'pull_command' | tr // // 'operation' | tr //