Bring back proper HTML for running jobs item

This commit is contained in:
Piotr Sarnacki 2015-05-20 13:07:22 +02:00
parent 2d0cd7e44f
commit 4b8900be0a

View File

@ -1,7 +1,28 @@
{{#if isLoaded}}
{{#if controller.length}}
{{#each job in controller}}
{{running-jobs-item job=job}}
<div {{bind-attr class=":tile :tile--sidebar job.state"}}>
{{#if job.repo.slug}}
<span {{bind-attr class=":icon :icon--job job.state"}}></span>
{{#link-to "job" job.repo job}}{{job.repo.slug}}{{/link-to}}
{{/if}}
<p class="tile-title float-right">
<span class="icon icon--hash"></span>
{{#if job.repo.slug}}
{{#link-to "job" job.repo job}}{{job.number}}{{/link-to}}
{{/if}}
</p>
<p>
<span class="icon icon--clock"></span>
Duration:
<abbr class="duration" {{bind-attr title="job.startedAt"}}>
{{format-duration job.duration}}
</abbr>
</p>
</div>
{{/each}}
{{else}}
<div class="spinner-container">There are no jobs running</div>