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

30 lines
773 B
Handlebars

{{#if isLoaded}}
{{#if 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> Queued
</p>
</div>
{{/each}}
{{else}}
<div class="loading-container">There are no jobs queued</div>
{{/if}}
{{else}}
{{loading-indicator center=true}}
{{/if}}