woodpecker/cmd/drone-server/static/scripts/views/builds/index/content.html
2015-08-09 20:18:21 -07:00

45 lines
No EOL
1.7 KiB
HTML

<main>
<article>
<section class="search">
<input type="search" spellcheck="false" placeholder="Filter commits for {{ repo.full_name}}" spellcheck="false" ng-model="search_text"/>
<menu>
<button type="button" ng-click="unwatch(repo)" ng-if="repo.starred && user">
<i class="material-icons">visibility</i>
</button>
<button type="button" ng-click="watch(repo)" ng-if="!repo.starred && user">
<i class="material-icons">visibility_off</i>
</button>
<a href="/{{ repo.full_name }}/edit">
<i class="material-icons">tune</i>
</a>
</menu>
</section>
<div class="blankslate" ng-show="!builds.length && !loading && !error">
<i class="material-icons">settings_ethernet</i>
<span>Push code to execute your first build.<br/>Be sure to configure you build using the <em>.drone.yml</em> file.</span>
</div>
<div class="alert alert-error" ng-show="!!error">
<i class="material-icons">error_outline</i>
<span>There was an error fetching the build history.</span>
</div>
<div>
<div class="list">
<a ng-repeat="build in builds | orderBy:'-number' | filter: search_text" ng-href="/{{ repo.full_name }}/{{ build.number}}">
<div class="column-status">
<div class="status {{ build.status }}">
<i class="material-icons">{{ build.status | icon }}</i>
</div>
</div>
<div class="column-fill">
<h2>{{ build.head_commit.message }}</h2>
<p><em>{{ build.head_commit.author.login }}</em> pushed to <em>{{ build.head_commit.branch }}</em> {{ build.started_at | fromNow }}</p>
</div>
</a>
</div>
</div>
</article>
</main>