Skip to content

Commit

Permalink
Bug 1564823 - Fix deploy image help link
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed Apr 9, 2018
1 parent 3029545 commit d2d7b67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/views/directives/deploy-image.html
Expand Up @@ -60,11 +60,13 @@
</button>
</span>
</div>
<div class="help-block">To deploy an image from a private repository, you must <span ng-if="!input.selectedProject.metadata.uid">create an image pull secret</span>
<div class="help-block">
To deploy an image from a private repository, you must <span ng-if="!input.selectedProject.metadata.uid">create an image pull secret</span>
<a href=""
ng-click="openCreateWebhookSecretModal()"
ng-if="input.selectedProject.metadata.uid">create an image pull secret</a>
with your image registry credentials.<a href="https://docs.openshift.org/latest/dev_guide/managing_images.html#using-image-pull-secrets" target="_blank"><span class="learn-more-inline">Learn More&nbsp;<i class="fa fa-external-link" aria-hidden="true"></i></span></a></div>
with your image registry credentials.
<a ng-href="{{'pull_secret' | helpLink}}" target="_blank"><span class="learn-more-inline">Learn More&nbsp;<i class="fa fa-external-link" aria-hidden="true"></i></span></a></div>
</div>
</fieldset>
</fieldset>
Expand Down
6 changes: 4 additions & 2 deletions dist/scripts/templates.js
Expand Up @@ -6439,9 +6439,11 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"</button>\n" +
"</span>\n" +
"</div>\n" +
"<div class=\"help-block\">To deploy an image from a private repository, you must <span ng-if=\"!input.selectedProject.metadata.uid\">create an image pull secret</span>\n" +
"<div class=\"help-block\">\n" +
"To deploy an image from a private repository, you must <span ng-if=\"!input.selectedProject.metadata.uid\">create an image pull secret</span>\n" +
"<a href=\"\" ng-click=\"openCreateWebhookSecretModal()\" ng-if=\"input.selectedProject.metadata.uid\">create an image pull secret</a>\n" +
"with your image registry credentials.<a href=\"https://docs.openshift.org/latest/dev_guide/managing_images.html#using-image-pull-secrets\" target=\"_blank\"><span class=\"learn-more-inline\">Learn More&nbsp;<i class=\"fa fa-external-link\" aria-hidden=\"true\"></i></span></a></div>\n" +
"with your image registry credentials.\n" +
"<a ng-href=\"{{'pull_secret' | helpLink}}\" target=\"_blank\"><span class=\"learn-more-inline\">Learn More&nbsp;<i class=\"fa fa-external-link\" aria-hidden=\"true\"></i></span></a></div>\n" +
"</div>\n" +
"</fieldset>\n" +
"</fieldset>\n" +
Expand Down

0 comments on commit d2d7b67

Please sign in to comment.