2015-04-08 22:43:59 +00:00
|
|
|
<h1>{{ repo.full_name }} / Edit</h1>
|
|
|
|
|
|
|
|
<a ng-href="/{{ repo.full_name }}">Back</a>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
<div>
|
2015-05-11 07:45:31 +00:00
|
|
|
<label>Enable Pushes</label>
|
|
|
|
<input type="checkbox" ng-model="repo.post_commits" />
|
2015-04-08 22:43:59 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2015-05-11 07:45:31 +00:00
|
|
|
<label>Enable Pull Requests</label>
|
|
|
|
<input type="checkbox" ng-model="repo.pull_requests" />
|
2015-04-08 22:43:59 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label>Trusted</label>
|
|
|
|
<input type="checkbox" ng-model="repo.trusted" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label>Timeout</label>
|
|
|
|
<input type="number" ng-model="repo.timeout" />
|
|
|
|
</div>
|
|
|
|
<ul>
|
|
|
|
<li ng-repeat="(key, value) in repo.params">
|
|
|
|
<label>{{ key }}</label>
|
|
|
|
<input type="text" ng-model="repo.params[key]"/>
|
|
|
|
<button ng-click="deleteParam(key)">remove</button>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<input type="text" ng-model="param.key" />
|
|
|
|
<input type="text" ng-model="param.value" />
|
|
|
|
<button ng-click="addParam(param)">add</button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2015-04-16 22:15:05 +00:00
|
|
|
<div>
|
|
|
|
<label>Public Key</label>
|
|
|
|
<pre>{{ repo.keypair.public }}</pre>
|
|
|
|
</div>
|
|
|
|
|
2015-04-08 22:43:59 +00:00
|
|
|
<button ng-click="save(repo)">Save</button>
|
|
|
|
<button ng-click="delete(repo.full_name)">Delete</button>
|
2015-04-16 22:15:05 +00:00
|
|
|
</form>
|