70 lines
1.8 KiB
Handlebars
70 lines
1.8 KiB
Handlebars
{{#if builds.isLoaded}}
|
|
<table id="builds" class="list">
|
|
<thead>
|
|
<tr>
|
|
<th>{{t builds.name}}</th>
|
|
<th>{{t builds.message}}</th>
|
|
<th>
|
|
{{t builds.commit}}
|
|
</th>
|
|
<th class="committer">
|
|
{{t builds.commiter}}
|
|
</th>
|
|
{{#if view.isPullRequestsList}}
|
|
<th>
|
|
{{t builds.pr}}
|
|
</th>
|
|
{{/if}}
|
|
<th>{{t builds.duration}}</th>
|
|
<th>{{t builds.finished_at}}</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{{#each build in builds}}
|
|
{{#view Travis.BuildsItemView contextBinding="build"}}
|
|
<td class="number">
|
|
<span class="status"></span>
|
|
{{#if id}}
|
|
{{#linkTo "build" repo this}}
|
|
{{number}}
|
|
{{/linkTo}}
|
|
{{/if}}
|
|
</td>
|
|
<td class="message">
|
|
{{{formatMessage commit.message short="true"}}}
|
|
</td>
|
|
<td class="commit">
|
|
<a {{bindAttr href="view.urlGithubCommit"}}>
|
|
{{formatCommit commit}}
|
|
</a>
|
|
</td>
|
|
<td class="committer">
|
|
{{commit.committerName}}
|
|
</td>
|
|
{{#if commit.pullRequestNumber}}
|
|
<td>
|
|
<a {{bindAttr href="view.urlGithubPullRequest"}}>
|
|
#{{commit.pullRequestNumber}}
|
|
</a>
|
|
</td>
|
|
{{/if}}
|
|
<td class="duration" {{bindAttr title="duration"}}>
|
|
{{formatDuration duration}}
|
|
</td>
|
|
<td class="finished_at timeago" {{bindAttr title="finishedAt"}}>
|
|
{{formatTime finishedAt}}
|
|
</td>
|
|
{{/view}}
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{#if displayShowMoreButton}}
|
|
<p>
|
|
{{view view.ShowMoreButton}}
|
|
</p>
|
|
{{/if}}
|
|
{{else}}
|
|
<div class="loading"><span>Loading</span></div>
|
|
{{/if}}
|