2015-04-24 22:36:48 +00:00
|
|
|
<div class="trigger-setup-githost-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">
|
2015-05-03 17:43:08 +00:00
|
|
|
<i class="dropdown-select-icon org-icon fa" ng-class="scmIcon(kind)"
|
2015-04-30 19:33:19 +00:00
|
|
|
ng-show="!state.currentRepo.avatar_url"></i>
|
2015-04-24 22:36:48 +00:00
|
|
|
<img class="dropdown-select-icon org-icon"
|
2015-04-30 19:33:19 +00:00
|
|
|
ng-src="{{ state.currentRepo.avatar_url ? state.currentRepo.avatar_url : '/static/img/empty.png' }}"
|
|
|
|
ng-show="state.currentRepo.avatar_url">
|
|
|
|
{{ state.currentRepo.repo }}
|
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">
|
2015-04-24 22:36:48 +00:00
|
|
|
<div style="margin-bottom: 12px">Please choose the 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 -->
|
2015-05-03 17:43:08 +00:00
|
|
|
<i class="dropdown-select-icon none-icon fa fa-lg" ng-class="scmIcon(kind)"></i>
|
2015-04-24 22:36:48 +00:00
|
|
|
<img class="dropdown-select-icon org-icon"
|
2015-04-30 19:33:19 +00:00
|
|
|
ng-show="state.currentRepo.avatar_url"
|
|
|
|
ng-src="{{ state.currentRepo.avatar_url ? state.currentRepo.avatar_url : '/static/img/empty.png' }}">
|
2015-05-03 17:43:08 +00:00
|
|
|
<i class="dropdown-select-icon org-icon fa fa-lg" ng-class="scmIcon(kind)"
|
2015-04-30 19:33:19 +00:00
|
|
|
ng-show="!state.currentRepo.avatar_url"></i>
|
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">
|
2015-04-24 22:36:48 +00:00
|
|
|
<li ng-repeat-start="org in orgs" role="presentation" class="dropdown-header org-header">
|
|
|
|
<img ng-src="{{ org.info.avatar_url }}" class="org-icon">{{ org.info.name }}
|
2014-10-14 19:46:35 +00:00
|
|
|
</li>
|
2015-04-30 19:33:19 +00:00
|
|
|
<li ng-repeat="repo in org.repos" class="trigger-repo-listing">
|
2016-03-22 18:15:54 +00:00
|
|
|
<a ng-click="selectRepo(repo, org)">
|
2015-05-03 17:43:08 +00:00
|
|
|
<i class="fa fa-lg" ng-class="scmIcon(kind)"></i> {{ repo }}
|
2015-04-24 22:36:48 +00:00
|
|
|
</a>
|
2014-10-14 19:46:35 +00:00
|
|
|
</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">
|
2016-03-22 18:15:54 +00:00
|
|
|
<li><a ng-click="state.branchTagFilter = 'heads/.+'">
|
2014-10-23 20:39:10 +00:00
|
|
|
<i class="fa fa-code-fork"></i>All Branches</a>
|
|
|
|
</li>
|
2016-03-22 18:15:54 +00:00
|
|
|
<li><a ng-click="state.branchTagFilter = 'tags/.+'">
|
2014-10-23 20:39:10 +00:00
|
|
|
<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'">
|
2016-04-28 18:38:22 +00:00
|
|
|
<span ng-click="addRef('heads', branchName)" ng-safenewtab>
|
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>
|
2015-05-03 17:43:08 +00:00
|
|
|
<div class="ref-matches" ng-if="tagNames.length">
|
2014-10-23 20:39:10 +00:00
|
|
|
<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'">
|
2016-04-28 18:38:22 +00:00
|
|
|
<span ng-click="addRef('tags', tagName)" ng-safenewtab>
|
2014-10-23 20:39:10 +00:00
|
|
|
{{ 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)"
|
2015-04-28 22:15:12 +00:00
|
|
|
allow-custom-input="true"
|
|
|
|
hide-dropdown="!supportsFullListing">
|
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">
|
2016-03-22 18:15:54 +00:00
|
|
|
<a ng-click="setLocation(location)" ng-if="!location">
|
2014-10-14 19:46:35 +00:00
|
|
|
<i class="fa fa-github fa-lg"></i> Repository Root
|
|
|
|
</a>
|
2016-03-22 18:15:54 +00:00
|
|
|
<a ng-click="setLocation(location)" ng-if="location">
|
2014-10-14 19:46:35 +00:00
|
|
|
<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>
|
|
|
|
|
2015-04-30 19:33:19 +00:00
|
|
|
<div class="cor-loader" ng-show="!locations && !locationError"></div>
|
2014-02-25 01:36:54 +00:00
|
|
|
<div class="alert alert-warning" ng-show="locationError">
|
|
|
|
{{ locationError }}
|
2014-02-20 23:57:49 +00:00
|
|
|
</div>
|
2015-04-28 22:15:12 +00:00
|
|
|
<div class="alert alert-warning" ng-show="locations && !locations.length && supportsFullListing">
|
|
|
|
Warning: No Dockerfiles were found in {{ state.currentRepo.repo }}
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-info" ng-show="locations.length && state.isInvalidLocation && supportsFullListing">
|
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>
|