2015-05-11 07:45:31 +00:00
|
|
|
<header>
|
2015-05-21 02:23:55 +00:00
|
|
|
<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>
|
2015-05-11 07:45:31 +00:00
|
|
|
</header>
|
2015-05-21 02:23:55 +00:00
|
|
|
|
2015-05-21 07:08:33 +00:00
|
|
|
<div class="toolbar">
|
|
|
|
|
|
|
|
<div class="breadcrumb" style="position:relative;top:0px;">
|
|
|
|
<a ng-href="/{{ repo.full_name }}" class="icon icon-home"></a>
|
|
|
|
<a ng-href="/{{ repo.full_name }}">{{ repo.owner }} / {{ repo.name }}</a>
|
|
|
|
<span class="spacer"></span>
|
2015-06-01 06:00:43 +00:00
|
|
|
<a ng-href="#">{{ build.sequence }}</a>
|
2015-05-21 02:23:55 +00:00
|
|
|
</div>
|
2015-05-21 07:08:33 +00:00
|
|
|
|
|
|
|
<div class="menu">
|
|
|
|
<a href="settings.html" class="icon icon-settings"></a>
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-05-21 02:23:55 +00:00
|
|
|
|
|
|
|
|
2015-05-21 07:08:33 +00:00
|
|
|
<article>
|
2015-05-11 07:45:31 +00:00
|
|
|
<section class="commit-section">
|
|
|
|
<div class="commit-status">
|
|
|
|
<div class="status {{ task.state }}" ng-if="task"></div>
|
|
|
|
<div class="status {{ build.state }}" ng-if="!task"></div>
|
|
|
|
</div>
|
|
|
|
<div class="commit-meta">
|
2015-05-29 05:08:29 +00:00
|
|
|
<h3>{{ build.message }}</h3>
|
|
|
|
<p><strong>{{ build.author }}</strong> pushed <strong>{{ build.sha.substr(0,8) }}</strong> to <strong>{{ build.branch }}</strong></p>
|
|
|
|
{{ build.exit_code }}
|
|
|
|
{{ build.started_at | fromNow }}
|
2015-05-11 07:45:31 +00:00
|
|
|
<span class="octicon octicon-git-commit">{{ build.sha.substr(0,8) }}</span>
|
|
|
|
<span class="octicon octicon-git-branch">{{ build.branch }}</span>
|
|
|
|
<span class="octicon octicon-clock" style="background:#FFF;">{{ build.duration | toDuration }} duration</span>
|
|
|
|
</div>
|
2015-06-01 06:00:43 +00:00
|
|
|
</section>
|
2015-05-11 07:45:31 +00:00
|
|
|
|
2015-06-01 06:00:43 +00:00
|
|
|
<section>
|
2015-05-29 05:08:29 +00:00
|
|
|
<a class="row build-row sub-build-row" ng-repeat="task in build.builds" ng-href="{{ repo.full_name }}/{{ build.sequence }}/{{ task.sequence }}">
|
|
|
|
<div>
|
2015-06-01 06:00:43 +00:00
|
|
|
<div ng-class="[ 'build-num', build.state ]"></div>
|
2015-05-29 05:08:29 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h3>
|
|
|
|
<div ng-repeat="(key, value) in task.environment">
|
|
|
|
{{ key.toUpperCase() }}={{ value }}
|
|
|
|
</div>
|
|
|
|
</h3>
|
2015-06-01 06:00:43 +00:00
|
|
|
<div style="position:absolute;top:30px;right:30px;color:#CCC;"># {{task.sequence}}</div>
|
2015-05-29 05:08:29 +00:00
|
|
|
</div>
|
|
|
|
</a>
|
2015-05-11 07:45:31 +00:00
|
|
|
</section>
|
2015-05-21 07:08:33 +00:00
|
|
|
</article>
|
2015-05-11 07:45:31 +00:00
|
|
|
|
2015-04-08 22:43:59 +00:00
|
|
|
|
|
|
|
|
2015-04-30 07:42:23 +00:00
|
|
|
<button ng-if="build.state !== 'pending' && build.state !== 'running'" ng-click="restart()">Restart</button>
|
|
|
|
<button ng-if="build.state === 'pending' || build.state === 'running'" ng-click="cancel()">Cancel</button>
|