woodpecker/cmd/drone-server/static/scripts/views/builds.html
2015-05-20 19:23:55 -07:00

44 lines
1.7 KiB
HTML

<header>
<a class="logo float-left" href="/"></a>
<a class="menu-item settings float-right" href="/profile"></a>
<a class="menu-item users float-right" href="/users" ng-if="user.admin"></a>
<a class="menu-item help float-right" href="http://readme.drone.io" target="_blank"></a>
<a class="menu-item user-name float-right" href="/profile">{{ "+"+user.login }}</a>
</header>
<header show-nav distance="160" class="dockable transition-fade flex-parent"></header>
<section class="central-container">
<div class="flex-item pane restrict-center contains-cardset">
<div class="breadcrumb flex-item truncate">
<a href="/" class="backarrow"></a>
<a href="#" class="level">{{ repo.owner }} / {{ repo.name }}</a>
</div>
</div>
<nav>
<a ng-href="/{{ repo.full_name }}/edit" class="nav-item settings float-right"></a>
<button ng-click="watch(repo)" ng-if="!repo.starred" class="nav-item star float-right"></button>
<button ng-click="unwatch(repo)" ng-if="repo.starred" class="nav-item unstar float-right"></button>
</nav>
<ul class="cardset list">
<li ng-repeat="build in builds | orderBy:'-sequence'">
<div ng-class="[ 'card', build.state ]">
<div class="dataset">
<a ng-href="/{{ repo.full_name }}/{{ build.sequence }}"></a>
<div class="info-1">
<p class="number">{{ build.sequence }}</p>
</div>
<div class="info-2">
<p class="branch-sha truncate">{{ build.branch }} ({{build.sha | trunc }})</p>
<p class="author-time truncate">{{ build.author }} &middot {{ build.started_at | fromNow }}</p>
</div>
<div class="info-3">
<p class="commit-message truncate">{{ build.message }}</p>
</div>
</div>
</div>
</li>
</ul>
</section>