harness-drone/cmd/drone-server/static/scripts/views/builds/show/content.html

41 lines
1.4 KiB
HTML
Raw Normal View History

<article>
2015-07-13 05:23:50 +00:00
<section class="commit-section">
<div class="row build-row">
<div>
<div ng-class="[ 'build-num', build.status ]"></div>
</div>
<div>
<h3>{{ build.head_commit.message }}</h3>
2015-07-13 19:24:52 +00:00
<p><strong>{{ build.head_commit.author.login }}</strong> pushed to <strong>{{ build.head_commit.branch}}</strong> {{ build.started_at | fromNow }}</p>
2015-07-13 05:23:50 +00:00
<div style="position:absolute;top:30px;right:30px;color:#CCC;"># {{build.number}}</div>
</div>
</div>
</section>
2015-07-13 19:24:52 +00:00
<p style="padding-top: 20px;">
<h3><strong>Build jobs</strong></h3>
</p>
2015-07-13 05:23:50 +00:00
<section>
2015-07-13 19:24:52 +00:00
<a class="row build-row sub-build-row" ng-repeat="job in build.jobs" ng-href="{{ repo.full_name }}/{{ build.number }}/{{ job.number }}">
2015-07-13 05:23:50 +00:00
<div>
<div ng-class="[ 'build-num', build.status ]"></div>
</div>
<div>
<h3>
<div ng-repeat="(key, value) in job.environment">
2015-07-13 19:24:52 +00:00
{{ key.toUpperCase() }}={{ value }}
</div>
2015-07-13 05:23:50 +00:00
</h3>
<div style="position:absolute;top:30px;right:30px;color:#CCC;"># {{job.number}}</div>
</div>
</a>
</section>
</article>
2015-07-13 19:24:52 +00:00
<div style="padding-left: 20px;">
<button ng-if="build.status !== 'pending' && build.status !== 'running'" ng-click="restart()">Restart</button>
<button ng-if="build.status === 'pending' || build.status === 'running'" ng-click="cancel()">Cancel</button>
</div>