2013-10-30 19:44:01 +00:00
|
|
|
<div class="container" ng-show="user.anonymous">
|
2013-12-18 03:56:28 +00:00
|
|
|
<div class="col-sm-6 col-sm-offset-3">
|
|
|
|
<div class="user-setup" redirect-url="'/new/'"></div>
|
|
|
|
</div>
|
2013-10-30 19:44:01 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container" ng-show="!user.anonymous && building">
|
2013-12-18 03:56:28 +00:00
|
|
|
<div class="quay-spinner"></div>
|
2013-10-26 21:20:59 +00:00
|
|
|
</div>
|
|
|
|
|
2013-10-30 19:44:01 +00:00
|
|
|
<div class="container" ng-show="!user.anonymous && creating">
|
2013-12-18 03:56:28 +00:00
|
|
|
<div class="quay-spinner"></div>
|
2013-10-26 20:03:11 +00:00
|
|
|
</div>
|
|
|
|
|
2014-02-15 03:59:44 +00:00
|
|
|
<div class="container new-repo" ng-show="!user.anonymous && !creating && !building">
|
2013-10-31 19:04:07 +00:00
|
|
|
<form method="post" name="newRepoForm" id="newRepoForm" ng-submit="createNewRepo()">
|
2013-10-24 21:41:55 +00:00
|
|
|
|
|
|
|
<!-- Header -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="section">
|
|
|
|
<div class="new-header">
|
2013-11-01 21:35:26 +00:00
|
|
|
<span style="color: #444;">
|
2013-11-07 05:49:13 +00:00
|
|
|
<span class="namespace-selector" user="user" namespace="repo.namespace" require-create="true"></span>
|
2013-11-01 21:35:26 +00:00
|
|
|
<span style="color: #ccc">/</span>
|
|
|
|
<span class="name-container">
|
2014-03-11 17:46:15 +00:00
|
|
|
<input id="repoName" name="repoName" type="text" class="form-control" placeholder="Repository Name" ng-model="repo.name"
|
2014-03-11 18:42:53 +00:00
|
|
|
required autofocus data-trigger="manual" data-content="{{ createError }}" data-placement="right" ng-pattern="/^[.a-z0-9_-]+$/">
|
2014-03-11 17:46:15 +00:00
|
|
|
</span>
|
|
|
|
<span class="alert alert-warning" ng-show="!newRepoForm.repoName.$error.required && !newRepoForm.repoName.$valid" style="margin-left: 10px;">
|
|
|
|
Repository names must match [a-z0-9_-]+
|
2013-11-01 21:35:26 +00:00
|
|
|
</span>
|
2013-10-24 21:41:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="section">
|
2014-03-13 19:25:38 +00:00
|
|
|
<div class="section-title">Repository Description</div>
|
|
|
|
<br>
|
2013-11-05 00:59:28 +00:00
|
|
|
<div class="description markdown-input" content="repo.description" can-write="true"
|
|
|
|
field-title="'repository description'"></div>
|
2013-10-24 21:41:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Private/public -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
<div class="col-md-8">
|
2014-03-13 19:25:38 +00:00
|
|
|
<div class="section-title">Repository Visibility</div>
|
2013-10-24 21:41:55 +00:00
|
|
|
<div class="section">
|
|
|
|
<div class="repo-option">
|
|
|
|
<input type="radio" id="publicrepo" name="publicorprivate" ng-model="repo.is_public" value="1">
|
2014-04-11 22:21:13 +00:00
|
|
|
<i class="fa fa-unlock fa-large" data-title="Public Repository"></i>
|
2013-10-24 21:41:55 +00:00
|
|
|
|
|
|
|
<div class="option-description">
|
2014-03-13 19:25:38 +00:00
|
|
|
<label for="publicrepo"><strong>Public</strong></label>
|
2013-10-24 21:41:55 +00:00
|
|
|
<span class="description-text">Anyone can see and pull from this repository. You choose who can push.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="repo-option">
|
|
|
|
<input type="radio" id="privaterepo" name="publicorprivate" ng-model="repo.is_public" value="0">
|
2014-04-11 22:21:13 +00:00
|
|
|
<i class="fa fa-lock fa-large" data-title="Private Repository"></i>
|
2013-10-24 21:41:55 +00:00
|
|
|
|
|
|
|
<div class="option-description">
|
2014-03-13 19:25:38 +00:00
|
|
|
<label for="privaterepo"><strong>Private</strong></label>
|
2013-10-24 21:41:55 +00:00
|
|
|
<span class="description-text">You choose who can see, pull and push from/to this repository.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-28 21:08:26 +00:00
|
|
|
|
|
|
|
<!-- Payment -->
|
2014-03-06 23:36:52 +00:00
|
|
|
<div class="required-plan" ng-show="repo.is_public == '0' && planRequired && planRequired.title">
|
2013-10-28 21:08:26 +00:00
|
|
|
<div class="alert alert-warning">
|
2014-03-06 23:36:52 +00:00
|
|
|
In order to make this repository private
|
|
|
|
<span ng-if="isUserNamespace">under your personal namespace</span>
|
|
|
|
<span ng-if="!isUserNamespace">under the organization <b>{{ repo.namespace }}</b></span>, you will need to upgrade your plan to
|
2014-03-18 02:46:54 +00:00
|
|
|
<b style="border-bottom: 1px dotted black;" data-html="true"
|
2014-04-11 22:21:13 +00:00
|
|
|
data-title="{{ '<b>' + planRequired.title + '</b><br>' + planRequired.privateRepos + ' private repositories' }}" bs-tooltip>
|
2013-12-21 03:45:03 +00:00
|
|
|
{{ planRequired.title }}
|
|
|
|
</b>.
|
|
|
|
This will cost $<span>{{ planRequired.price / 100 }}</span>/month.
|
2013-10-28 21:08:26 +00:00
|
|
|
</div>
|
|
|
|
<a class="btn btn-primary" ng-click="upgradePlan()" ng-show="!planChanging">Upgrade now</a>
|
2014-03-06 23:36:52 +00:00
|
|
|
<span ng-if="isUserNamespace && user.organizations.length == 1">or did you mean to create this repository
|
2014-01-16 00:15:38 +00:00
|
|
|
under <a href="javascript:void(0)" ng-click="changeNamespace(user.organizations[0].name)"><b>{{ user.organizations[0].name }}</b></a>?</span>
|
2013-12-18 03:56:28 +00:00
|
|
|
<div class="quay-spinner" ng-show="planChanging"></div>
|
2013-10-28 21:08:26 +00:00
|
|
|
</div>
|
2013-11-01 23:13:58 +00:00
|
|
|
|
2013-12-19 04:03:19 +00:00
|
|
|
<div class="quay-spinner" ng-show="repo.is_public == '0' && checkingPlan"></div>
|
|
|
|
|
2014-03-06 23:36:52 +00:00
|
|
|
<div class="required-plan" ng-show="repo.is_public == '0' && planRequired && !isUserNamespace && !planRequired.title">
|
2013-11-01 23:13:58 +00:00
|
|
|
<div class="alert alert-warning">
|
2014-03-06 23:36:52 +00:00
|
|
|
This organization has reached its private repository limit. Please contact your administrator.
|
2013-11-01 23:13:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-24 21:41:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="section">
|
2014-03-13 19:25:38 +00:00
|
|
|
<div class="section-title">Initialize repository</div>
|
|
|
|
|
|
|
|
<div style="padding-top: 10px;">
|
|
|
|
<!-- Empty -->
|
|
|
|
<div class="repo-option">
|
|
|
|
<input type="radio" id="initEmpty" name="initialize" ng-model="repo.initialize" value="">
|
|
|
|
<i class="fa fa-hdd-o fa-lg" style="padding: 6px; padding-left: 8px; padding-right: 6px;"></i>
|
|
|
|
<label for="initEmpty" style="color: #aaa;">(Empty repository)</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Dockerfile -->
|
|
|
|
<div class="repo-option">
|
|
|
|
<input type="radio" id="initDockerfile" name="initialize" ng-model="repo.initialize" value="dockerfile">
|
|
|
|
<i class="fa fa-file fa-lg" style="padding: 6px; padding-left: 10px; padding-right: 8px;"></i>
|
|
|
|
<label for="initDockerfile">Initialize from a <b>Dockerfile</b></label>
|
|
|
|
</div>
|
|
|
|
|
2014-04-02 02:12:51 +00:00
|
|
|
<!-- Zip/TarGz file -->
|
2014-03-13 19:25:38 +00:00
|
|
|
<div class="repo-option">
|
|
|
|
<input type="radio" id="initZipfile" name="initialize" ng-model="repo.initialize" value="zipfile">
|
|
|
|
<i class="fa fa-archive fa-lg" style="padding: 6px; padding-left: 10px; padding-right: 8px;"></i>
|
2014-04-02 02:12:51 +00:00
|
|
|
<label for="initZipfile">Initialize from a <b>Dockerfile</b> inside a <code>.zip</code> or <code>.tar.gz</code> archive</label>
|
2014-03-13 19:25:38 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Github -->
|
|
|
|
<div class="repo-option">
|
|
|
|
<input type="radio" id="initGithub" name="initialize" ng-model="repo.initialize" value="github">
|
|
|
|
<i class="fa fa-github fa-lg" style="padding: 6px; padding-left: 10px; padding-right: 12px;"></i>
|
|
|
|
<label for="initGithub">Link to a GitHub Repository</label>
|
|
|
|
</div>
|
2013-10-24 21:41:55 +00:00
|
|
|
</div>
|
2014-03-13 19:25:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-24 21:41:55 +00:00
|
|
|
|
2014-03-13 19:25:38 +00:00
|
|
|
<div class="row" ng-show="repo.initialize == 'dockerfile' || repo.initialize == 'zipfile'">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="section">
|
2014-04-02 02:12:51 +00:00
|
|
|
<div class="section-title">Upload <span ng-if="repo.initialize == 'dockerfile'">Dockerfile</span><span ng-if="repo.initialize == 'zipfile'">Archive</span></div>
|
2014-03-13 19:25:38 +00:00
|
|
|
<div style="padding-top: 20px;">
|
|
|
|
<div class="initialize-repo">
|
|
|
|
<div class="dockerfile-build-form" repository="createdForBuild" upload-failed="handleBuildFailed(message)"
|
|
|
|
build-started="handleBuildStarted()" build-failed="handleBuildFailed(message)" start-now="createdForBuild"
|
|
|
|
has-dockerfile="hasDockerfile" uploading="uploading" building="building"></div>
|
|
|
|
</div>
|
2013-10-24 21:41:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-13 19:25:38 +00:00
|
|
|
<div class="row" ng-show="repo.initialize == 'github'">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="alert alert-info">
|
|
|
|
You will be redirected to authorize via GitHub once the repository has been created
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-10-24 21:41:55 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
<div class="col-md-8">
|
2013-12-19 04:03:19 +00:00
|
|
|
<button class="btn btn-large btn-success" type="submit"
|
2014-03-13 19:25:38 +00:00
|
|
|
ng-disabled="uploading || building || newRepoForm.$invalid || (repo.is_public == '0' && (planRequired || checkingPlan)) || ((repo.initialize == 'dockerfile' || repo.initialize == 'zipfile') && !hasDockerfile)">
|
2013-12-19 04:03:19 +00:00
|
|
|
Create Repository
|
|
|
|
</button>
|
2013-10-24 21:41:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Modal edit for the description -->
|
|
|
|
<div class="modal fade" id="editModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Edit Repository Description</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="wmd-panel">
|
|
|
|
<div id="wmd-button-bar-description"></div>
|
|
|
|
<textarea class="wmd-input" id="wmd-input-description" placeholder="Enter description">{{ repo.description }}</textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="wmd-preview-description" class="wmd-panel wmd-preview"></div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="saveDescription()">Save changes</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
2013-10-26 20:03:11 +00:00
|
|
|
|
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="cannotcreateModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Cannot create repository</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
The repository could not be created.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
2013-10-26 21:20:59 +00:00
|
|
|
|
2013-10-28 21:08:26 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="couldnotsubscribeModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Cannot upgrade plan</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
Your current plan could not be upgraded. Please try again.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|