2014-02-20 23:57:49 +00:00
|
|
|
<div class="trigger-setup-github-element">
|
2014-10-14 19:46:35 +00:00
|
|
|
<!-- Current selected info -->
|
|
|
|
<div class="selected-info" ng-show="nextStepCounter > 0">
|
|
|
|
<table style="width: 100%;">
|
2014-10-27 21:05:16 +00:00
|
|
|
<tr ng-show="state.currentRepo && nextStepCounter > 0">
|
2014-10-14 19:46:35 +00:00
|
|
|
<td width="200px">
|
|
|
|
Repository:
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="current-repo">
|
|
|
|
<img class="dropdown-select-icon github-org-icon"
|
2014-11-25 00:25:13 +00:00
|
|
|
ng-src="{{ state.currentRepo.avatar_url ? state.currentRepo.avatar_url : '/static/img/empty.png' }}">
|
2014-10-27 21:05:16 +00:00
|
|
|
<a ng-href="https://github.com/{{ state.currentRepo.repo }}" target="_blank">{{ state.currentRepo.repo }}</a>
|
2014-10-14 19:46:35 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr ng-show="nextStepCounter > 1">
|
|
|
|
<td>
|
2014-10-23 20:39:10 +00:00
|
|
|
Branches and Tags:
|
2014-10-14 19:46:35 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-10-23 20:39:10 +00:00
|
|
|
<div class="ref-filter">
|
|
|
|
<span ng-if="!state.hasBranchTagFilter">(Build All)</span>
|
|
|
|
<span ng-if="state.hasBranchTagFilter">Regular Expression: <code>{{ state.branchTagFilter }}</code></span>
|
2014-10-14 19:46:35 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr ng-show="nextStepCounter > 2">
|
|
|
|
<td>
|
|
|
|
Dockerfile Location:
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="dockerfile-location">
|
2015-03-31 21:12:40 +00:00
|
|
|
<i class="fa fa-folder fa-lg"></i> {{ state.currentLocation || '(Repository Root)' }}
|
2014-10-14 19:46:35 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2014-02-20 23:57:49 +00:00
|
|
|
</div>
|
2014-02-25 01:36:54 +00:00
|
|
|
|
2014-10-14 19:46:35 +00:00
|
|
|
|
|
|
|
<!-- Step view -->
|
|
|
|
<div class="step-view" next-step-counter="nextStepCounter" current-step-valid="currentStepValid"
|
|
|
|
steps-completed="stepsCompleted()">
|
2014-02-25 01:36:54 +00:00
|
|
|
<!-- Repository select -->
|
2014-10-27 21:05:16 +00:00
|
|
|
<div class="step-view-step" complete-condition="state.currentRepo" load-callback="loadRepositories(callback)"
|
2014-10-14 19:46:35 +00:00
|
|
|
load-message="Loading Repositories">
|
|
|
|
<div style="margin-bottom: 12px">Please choose the GitHub repository that will trigger the build:</div>
|
2014-10-27 21:05:16 +00:00
|
|
|
<div class="dropdown-select" placeholder="'Enter or select a repository'" selected-item="state.currentRepo"
|
|
|
|
lookahead-items="repoLookahead" allow-custom-input="true">
|
2014-10-14 19:46:35 +00:00
|
|
|
<!-- Icons -->
|
|
|
|
<i class="dropdown-select-icon none-icon fa fa-github fa-lg"></i>
|
|
|
|
<img class="dropdown-select-icon github-org-icon"
|
2014-11-25 00:25:13 +00:00
|
|
|
ng-src="{{ state.currentRepo.avatar_url ? state.currentRepo.avatar_url : '/static/image/empty.png' }}">
|
2014-10-14 19:46:35 +00:00
|
|
|
|
|
|
|
<!-- Dropdown menu -->
|
2014-10-27 21:05:16 +00:00
|
|
|
<ul class="dropdown-select-menu scrollable-menu" role="menu">
|
2014-10-14 19:46:35 +00:00
|
|
|
<li ng-repeat-start="org in orgs" role="presentation" class="dropdown-header github-org-header">
|
|
|
|
<img ng-src="{{ org.info.avatar_url }}" class="github-org-icon">{{ org.info.name }}
|
|
|
|
</li>
|
|
|
|
<li ng-repeat="repo in org.repos" class="github-repo-listing">
|
|
|
|
<a href="javascript:void(0)" ng-click="selectRepo(repo, org)"><i class="fa fa-github fa-lg"></i> {{ repo }}</a>
|
|
|
|
</li>
|
|
|
|
<li role="presentation" class="divider" ng-repeat-end ng-show="$index < orgs.length - 1"></li>
|
2014-11-24 21:07:38 +00:00
|
|
|
</ul>
|
2014-10-14 19:46:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-10-23 20:39:10 +00:00
|
|
|
<!-- Branch/Tag filter/select -->
|
|
|
|
<div class="step-view-step" complete-condition="!state.hasBranchTagFilter || state.branchTagFilter"
|
|
|
|
load-callback="loadBranchesAndTags(callback)"
|
|
|
|
load-message="Loading Branches and Tags">
|
2014-10-14 19:46:35 +00:00
|
|
|
|
2014-10-23 20:39:10 +00:00
|
|
|
<div style="margin-bottom: 12px">Please choose the branches and tags to which this trigger will apply:</div>
|
2014-10-14 19:46:35 +00:00
|
|
|
<div style="margin-left: 20px;">
|
|
|
|
<div class="btn-group btn-group-sm" style="margin-bottom: 12px">
|
|
|
|
<button type="button" class="btn btn-default"
|
2014-10-23 20:39:10 +00:00
|
|
|
ng-class="state.hasBranchTagFilter ? '' : 'active btn-info'" ng-click="state.hasBranchTagFilter = false">
|
|
|
|
All Branches and Tags
|
2014-10-14 19:46:35 +00:00
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-default"
|
2014-10-23 20:39:10 +00:00
|
|
|
ng-class="state.hasBranchTagFilter ? 'active btn-info' : ''" ng-click="state.hasBranchTagFilter = true">
|
2014-10-14 19:46:35 +00:00
|
|
|
Matching Regular Expression
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2014-10-23 20:39:10 +00:00
|
|
|
<div ng-show="state.hasBranchTagFilter" style="margin-top: 10px;">
|
2014-10-14 19:46:35 +00:00
|
|
|
<form>
|
2014-10-23 20:39:10 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<input class="form-control" type="text" ng-model="state.branchTagFilter"
|
2014-11-24 21:07:38 +00:00
|
|
|
placeholder="(Regular expression. Examples: heads/branchname, tags/tagname)" required>
|
2014-10-23 20:39:10 +00:00
|
|
|
<div class="dropdown input-group-addon">
|
|
|
|
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
|
|
|
|
<span class="caret"></span>
|
2014-11-24 21:07:38 +00:00
|
|
|
</button>
|
2014-10-23 20:39:10 +00:00
|
|
|
<ul class="dropdown-menu pull-right">
|
|
|
|
<li><a href="javascript:void(0)" ng-click="state.branchTagFilter = 'heads/.+'">
|
|
|
|
<i class="fa fa-code-fork"></i>All Branches</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="javascript:void(0)" ng-click="state.branchTagFilter = 'tags/.+'">
|
|
|
|
<i class="fa fa-tag"></i>All Tags</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-10-14 19:46:35 +00:00
|
|
|
</form>
|
|
|
|
|
2014-10-23 20:39:10 +00:00
|
|
|
|
2014-10-14 19:46:35 +00:00
|
|
|
<div style="margin-top: 10px">
|
2014-10-23 20:39:10 +00:00
|
|
|
<div class="ref-matches" ng-if="branchNames.length">
|
|
|
|
<span class="kind">Branches:</span>
|
|
|
|
<ul class="matching-refs branches">
|
2014-10-14 19:46:35 +00:00
|
|
|
<li ng-repeat="branchName in branchNames | limitTo:20"
|
2014-10-23 20:39:10 +00:00
|
|
|
class="ref-reference"
|
2014-11-24 21:07:38 +00:00
|
|
|
ng-class="isMatching('heads', branchName, state.branchTagFilter) ? 'match' : 'not-match'">
|
2014-10-23 20:39:10 +00:00
|
|
|
<span ng-click="addRef('heads', branchName)" target="_blank">
|
2014-10-14 19:46:35 +00:00
|
|
|
{{ branchName }}
|
2014-10-23 20:39:10 +00:00
|
|
|
</span>
|
2014-11-24 21:07:38 +00:00
|
|
|
</li>
|
2014-10-14 19:46:35 +00:00
|
|
|
</ul>
|
|
|
|
<span ng-if="branchNames.length > 20">...</span>
|
|
|
|
</div>
|
2014-10-23 20:39:10 +00:00
|
|
|
<div class="ref-matches" ng-if="tagNames.length" style="margin-bottom: -20px">
|
|
|
|
<span class="kind">Tags:</span>
|
|
|
|
<ul class="matching-refs tags">
|
|
|
|
<li ng-repeat="tagName in tagNames | limitTo:20"
|
|
|
|
class="ref-reference"
|
2014-11-24 21:07:38 +00:00
|
|
|
ng-class="isMatching('tags', tagName, state.branchTagFilter) ? 'match' : 'not-match'">
|
2014-10-23 20:39:10 +00:00
|
|
|
<span ng-click="addRef('tags', tagName)" target="_blank">
|
|
|
|
{{ tagName }}
|
|
|
|
</span>
|
2014-11-24 21:07:38 +00:00
|
|
|
</li>
|
2014-10-23 20:39:10 +00:00
|
|
|
</ul>
|
|
|
|
<span ng-if="tagNames.length > 20">...</span>
|
2014-11-24 21:07:38 +00:00
|
|
|
</div>
|
2014-10-23 20:39:10 +00:00
|
|
|
<div ng-if="state.branchTagFilter && !branchNames.length"
|
2014-10-14 19:46:35 +00:00
|
|
|
style="margin-top: 10px">
|
|
|
|
<strong>Warning:</strong> No branches found
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-25 01:36:54 +00:00
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2014-02-25 01:36:54 +00:00
|
|
|
<!-- Dockerfile folder select -->
|
2014-10-14 19:46:35 +00:00
|
|
|
<div class="step-view-step" complete-condition="trigger.$ready" load-callback="loadLocations(callback)"
|
|
|
|
load-message="Loading Folders">
|
|
|
|
|
|
|
|
<div style="margin-bottom: 12px">Dockerfile Location:</div>
|
|
|
|
<div class="dropdown-select" placeholder="'(Repository Root)'" selected-item="state.currentLocation"
|
|
|
|
lookahead-items="locations" handle-input="handleLocationInput(input)"
|
|
|
|
handle-item-selected="handleLocationSelected(datum)"
|
2014-09-08 16:17:00 +00:00
|
|
|
allow-custom-input="true">
|
2014-02-25 01:36:54 +00:00
|
|
|
<!-- Icons -->
|
2014-10-14 19:46:35 +00:00
|
|
|
<i class="dropdown-select-icon none-icon fa fa-folder-o fa-lg" ng-show="state.isInvalidLocation"></i>
|
|
|
|
<i class="dropdown-select-icon none-icon fa fa-folder fa-lg" style="color: black;" ng-show="!state.isInvalidLocation"></i>
|
2014-02-25 01:36:54 +00:00
|
|
|
<i class="dropdown-select-icon fa fa-folder fa-lg"></i>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2014-02-25 01:36:54 +00:00
|
|
|
<!-- Dropdown menu -->
|
|
|
|
<ul class="dropdown-select-menu" role="menu">
|
|
|
|
<li ng-repeat="location in locations">
|
2014-10-14 19:46:35 +00:00
|
|
|
<a href="javascript:void(0)" ng-click="setLocation(location)" ng-if="!location">
|
|
|
|
<i class="fa fa-github fa-lg"></i> Repository Root
|
|
|
|
</a>
|
|
|
|
<a href="javascript:void(0)" ng-click="setLocation(location)" ng-if="location">
|
|
|
|
<i class="fa fa-folder fa-lg"></i> {{ location }}
|
|
|
|
</a>
|
2014-02-20 23:57:49 +00:00
|
|
|
</li>
|
2014-10-14 19:46:35 +00:00
|
|
|
<li class="dropdown-header" role="presentation" ng-show="!locations.length">
|
|
|
|
No Dockerfiles found in repository
|
2014-11-24 21:07:38 +00:00
|
|
|
</li>
|
2014-02-25 01:36:54 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="quay-spinner" ng-show="!locations && !locationError"></div>
|
|
|
|
<div class="alert alert-warning" ng-show="locations && !locations.length">
|
2014-10-27 21:05:16 +00:00
|
|
|
Warning: No Dockerfiles were found in {{ state.currentRepo.repo }}
|
2014-02-25 01:36:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="alert alert-warning" ng-show="locationError">
|
|
|
|
{{ locationError }}
|
2014-02-20 23:57:49 +00:00
|
|
|
</div>
|
2014-10-14 19:46:35 +00:00
|
|
|
<div class="alert alert-info" ng-show="locations.length && state.isInvalidLocation">
|
2014-02-25 05:42:33 +00:00
|
|
|
Note: The folder does not currently exist or contain a Dockerfile
|
|
|
|
</div>
|
2014-02-20 23:57:49 +00:00
|
|
|
</div>
|
2014-10-14 19:46:35 +00:00
|
|
|
<!-- /step-view -->
|
2014-02-20 23:57:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|