woodpecker/cmd/drone-server/static/scripts/views/repos/index/content.html

38 lines
1.5 KiB
HTML
Raw Normal View History

2015-07-29 16:16:08 +00:00
<main>
<article>
2015-07-29 16:16:08 +00:00
<section class="search">
2015-07-30 02:51:55 +00:00
<input type="search" spellcheck="false" placeholder="Create or find a repository (e.g. octocat/Hello-World)" ng-model="search_text" ng-keypress="add($event, search_text)"/>
</section>
2015-07-29 16:16:08 +00:00
2015-07-30 02:51:55 +00:00
<div class="blankslate" ng-show="!repos.length && !loading && !search_text && !error">
<i class="material-icons">control_point_duplicate</i>
<span>Get started by adding your repository.<br/>Just type the repository name in the text box above.</span>
</div>
<div class="alert alert-create-not-found" ng-show="!!search_text">
<i class="material-icons" ng-show="!waiting">control_point_duplicate</i>
<i class="material-icons waiting" ng-show="waiting">refresh</i>
<span ng-show="!waiting">Press &lt;enter&gt; to add <em>{{search_text}}</em></span>
<span ng-show="waiting">Configuring repository <em>{{search_text}}</em></span>
</div>
<div class="alert alert-error" ng-show="!!error">
<i class="material-icons">error_outline</i>
<span>There was an error adding your repository.<br/>Please ensure the
repository exists and you have admin privileges.</span>
</div>
<ul class="list cozy" ng-show="!waiting && !error">
2015-07-29 16:16:08 +00:00
<a class="row row-repo" ng-repeat="repo in repos" ng-href="/{{ repo.full_name }}">
<div class="column-avatar">
2015-07-30 02:51:55 +00:00
<img ng-src="https://avatars1.githubusercontent.com/u/2181346" />
2015-07-29 16:16:08 +00:00
</div>
<div class="column-fill">
<h2>{{ repo.name }}</h2>
</div>
</a>
</ul>
</article>
</main>