travis-web/app/templates/running-jobs.hbs
2015-07-14 17:57:08 +02:00

33 lines
920 B
Handlebars

{{#if isLoaded}}
{{#if controller.length}}
{{#each job in controller}}
<div class="tile tile--sidebar {{job.state}}">
{{#if job.repo.slug}}
<span 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" title={{job.startedAt}}>
{{format-duration job.duration}}
</abbr>
</p>
</div>
{{/each}}
{{else}}
<div class="loading-container">There are no jobs running</div>
{{/if}}
{{else}}
{{loading-indicator center="true"}}
{{/if}}