Add basic user interface for application repos

Adds support for creating app repos, viewing app repos and seeing the list of app repos in the Quay UI.
This commit is contained in:
Joseph Schorr 2017-03-23 17:16:19 -04:00
parent 3dd6e6919d
commit f9e6110f73
47 changed files with 1009 additions and 106 deletions

View file

@ -31,6 +31,14 @@
<div class="section">
<div class="new-header">
<div class="namespace-selector-header">
<span quay-show="Features.APP_REGISTRY">
<span class="visible-xs xs-label">Repository Kind:</span>
<select class="form-control repo-kind-select" ng-model="repo.repo_kind">
<option value="image">Container Image Repository</option>
<option value="application">Application Repository</option>
</select>
</span>
<span class="visible-xs xs-label">Namespace:</span>
<span class="namespace-selector" user="user" namespace="repo.namespace" require-create="true"></span>
@ -49,6 +57,7 @@
</span>
</div>
</div>
</div>
<div class="section">
@ -96,9 +105,8 @@
</div>
</div>
</div>
<div ng-show="repo.is_public == '1' || (!planRequired && !checkingPlan)">
<div class="row" ng-show="Features.BUILD_SUPPORT">
<div class="row" ng-show="Features.BUILD_SUPPORT && repo.repo_kind == 'image'">
<div class="col-md-12">
<div class="section">
<div class="section-title">Initialize repository</div>
@ -132,7 +140,7 @@
</div>
</div>
<div class="row" ng-show="repo.initialize == 'dockerfile' || repo.initialize == 'zipfile'">
<div class="row" ng-show="(repo.initialize == 'dockerfile' || repo.initialize == 'zipfile') && repo.repo_kind == 'image'">
<div class="col-md-12">
<div class="section">
<div class="section-title">Initialize from Dockerfile</div>
@ -149,7 +157,7 @@
<div class="row"
ng-repeat="type in TriggerService.getTypes()"
ng-if="TriggerService.isEnabled(type) && repo.initialize == type">
ng-if="TriggerService.isEnabled(type) && repo.initialize == type && repo.repo_kind == 'image'">
<div class="col-md-12">
<div class="co-alert co-alert-info">
You will be redirected to authorize for {{ TriggerService.getTitle(type) }} once the repository has been created