add a loading indicator to history and pull requests
This commit is contained in:
parent
0d298bdc55
commit
bb59aa0b9d
|
@ -1,45 +1,49 @@
|
||||||
<table id="builds" class="list">
|
{{#if builds.isLoaded}}
|
||||||
<thead>
|
<table id="builds" class="list">
|
||||||
<tr>
|
<thead>
|
||||||
<th>{{t builds.name}}</th>
|
<tr>
|
||||||
<th>{{t builds.commit}}</th>
|
<th>{{t builds.name}}</th>
|
||||||
<th>{{t builds.message}}</th>
|
<th>{{t builds.commit}}</th>
|
||||||
<th>{{t builds.duration}}</th>
|
<th>{{t builds.message}}</th>
|
||||||
<th>{{t builds.finished_at}}</th>
|
<th>{{t builds.duration}}</th>
|
||||||
</tr>
|
<th>{{t builds.finished_at}}</th>
|
||||||
</thead>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{{#each build in builds}}
|
{{#each build in builds}}
|
||||||
{{#view Travis.BuildsItemView contextBinding="build"}}
|
{{#view Travis.BuildsItemView contextBinding="build"}}
|
||||||
<tr {{bindAttr class="view.color"}}>
|
<tr {{bindAttr class="view.color"}}>
|
||||||
<td class="number">
|
<td class="number">
|
||||||
<a {{bindAttr href="view.urlBuild"}} {{action route}}>
|
<a {{bindAttr href="view.urlBuild"}} {{action route}}>
|
||||||
{{number}}
|
{{number}}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="commit">
|
<td class="commit">
|
||||||
<a {{bindAttr href="view.urlGithubCommit"}}>
|
<a {{bindAttr href="view.urlGithubCommit"}}>
|
||||||
{{formatCommit commit}}
|
{{formatCommit commit}}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="message">
|
<td class="message">
|
||||||
{{{formatMessage commit.message short="true"}}}
|
{{{formatMessage commit.message short="true"}}}
|
||||||
</td>
|
</td>
|
||||||
<td class="duration" {{bindAttr title="duration"}}>
|
<td class="duration" {{bindAttr title="duration"}}>
|
||||||
{{formatDuration duration}}
|
{{formatDuration duration}}
|
||||||
</td>
|
</td>
|
||||||
<td class="finished_at timeago" {{bindAttr title="finishedAt"}}>
|
<td class="finished_at timeago" {{bindAttr title="finishedAt"}}>
|
||||||
{{formatTime finishedAt}}
|
{{formatTime finishedAt}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/view}}
|
{{/view}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<button {{action showMore on="click" target="this" isVisibleBinding="hasMore"}}>
|
<button {{action showMore on="click" target="this" isVisibleBinding="hasMore"}}>
|
||||||
{{t builds.show_more}}
|
{{t builds.show_more}}
|
||||||
</button>
|
</button>
|
||||||
</p>
|
</p>
|
||||||
|
{{else}}
|
||||||
|
<div class="loading"><span>Loading</span></div>
|
||||||
|
{{/if}}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user