Make the setup trigger dialog more clear on what the pull credentials actually mean

This commit is contained in:
Joseph Schorr 2014-08-06 16:01:19 -04:00
parent d1c9108570
commit 09286d6234
2 changed files with 51 additions and 50 deletions

View file

@ -4101,10 +4101,6 @@ pre.command:before {
margin-top: 10px; margin-top: 10px;
} }
.trigger-option-section .entity-search-element .twitter-typeahead {
width: 370px;
}
.trigger-option-section .entity-search-element input { .trigger-option-section .entity-search-element input {
width: 100%; width: 100%;
} }

View file

@ -45,53 +45,58 @@
</div> </div>
</div> </div>
<table style="width: 100%;" ng-show="pullRequirements"> <div ng-show="pullRequirements">
<tr> <table style="width: 100%;">
<td style="width: 114px"> <tr>
<div class="context-tooltip" data-title="The credentials used by the builder when pulling images from Quay.io" bs-tooltip> <td style="width: 162px">
Pull Credentials: <span class="context-tooltip" data-title="The credentials given to 'docker pull' in the builder for pulling images"
</div> style="margin-bottom: 10px" bs-tooltip>
</td> docker pull Credentials:
<td> </span>
<div ng-if="!isNamespaceAdmin(repository.namespace)" style="color: #aaa;"> </td>
In order to set pull credentials for a build trigger, you must be an Administrator of the namespace <strong>{{ repository.namespace }}</strong> <td>
</div> <div ng-if="!isNamespaceAdmin(repository.namespace)" style="color: #aaa;">
<div class="btn-group btn-group-sm" ng-if="isNamespaceAdmin(repository.namespace)"> In order to set pull credentials for a build trigger, you must be an Administrator of the namespace <strong>{{ repository.namespace }}</strong>
<button type="button" class="btn btn-default" </div>
ng-class="publicPull ? 'active btn-info' : ''" ng-click="setPublicPull(true)">Public</button> <div class="btn-group btn-group-sm" ng-if="isNamespaceAdmin(repository.namespace)">
<button type="button" class="btn btn-default" <button type="button" class="btn btn-default"
ng-class="publicPull ? '' : 'active btn-info'" ng-click="setPublicPull(false)"> ng-class="publicPull ? 'active btn-info' : ''" ng-click="setPublicPull(true)">None</button>
<i class="fa fa-wrench"></i> <button type="button" class="btn btn-default"
Robot account ng-class="publicPull ? '' : 'active btn-info'" ng-click="setPublicPull(false)">
</button> <i class="fa fa-wrench"></i>
</div> Robot account
</td> </button>
</tr> </div>
<tr ng-show="!publicPull"> </td>
<td> </tr>
</td> </table>
<td>
<div class="entity-search" namespace="repository.namespace" <table style="width: 100%;">
placeholder="'Select robot account for pulling...'" <tr ng-show="!publicPull">
current-entity="pullEntity" <td>
allowed-entities="['robot']"></div> <div class="entity-search" namespace="repository.namespace"
placeholder="'Select robot account for pulling...'"
current-entity="pullEntity"
allowed-entities="['robot']"></div>
<div class="alert alert-info" ng-if="pullRequirements.status == 'analyzed' && pullRequirements.robots.length"
style="margin-top: 20px; margin-bottom: 0px;">
Note: We've automatically selected robot account
<span class="entity-reference" entity="pullRequirements.robots[0]"></span>, since it has access to the Quay.io
repository.
</div>
<div class="alert alert-warning"
ng-if="pullRequirements.status == 'analyzed' && !pullRequirements.robots.length && pullRequirements.name"
style="margin-top: 20px; margin-bottom: 0px;">
Note: No robot account currently has access to the Quay.io repository. Please create one and/or assign access in the
<a href="/repository/{{ pullRequirements.namespace }}/{{ pullRequirements.name }}/admin" target="_blank">repository's
admin panel</a>.
</div>
</td>
</tr>
</table>
</div>
<div class="alert alert-info" ng-if="pullRequirements.status == 'analyzed' && pullRequirements.robots.length"
style="margin-top: 20px; margin-bottom: 0px;">
Note: We've automatically selected robot account
<span class="entity-reference" entity="pullRequirements.robots[0]"></span>, since it has access to the Quay.io
repository.
</div>
<div class="alert alert-warning"
ng-if="pullRequirements.status == 'analyzed' && !pullRequirements.robots.length && pullRequirements.name"
style="margin-top: 20px; margin-bottom: 0px;">
Note: No robot account currently has access to the Quay.io repository. Please create one and/or assign access in the
<a href="/repository/{{ pullRequirements.namespace }}/{{ pullRequirements.name }}/admin" target="_blank">repository's
admin panel</a>.
</div>
</td>
</tr>
</table>
</div> </div>
</div> </div>