travis-web/assets/scripts/app/templates/queues/list.hbs
Piotr Sarnacki 8801fe7e6c Replace all of the uses of translation helper with plain text
We're removing translations from Travis, the substitution was done using
this script: https://gist.github.com/drogus/8436273
2014-01-15 14:35:01 +01:00

30 lines
732 B
Handlebars

<ul id="queues">
{{#each queue in controller}}
<li class="queue">
<h4>Queue: {{queue.name}}</h4>
<ul {{bind-attr id="queue.id"}}>
{{#each job in queue}}
{{#view Travis.QueueItemView jobBinding="job"}}
{{#if job.repo.slug}}
{{#link-to "job" job.repo job}}
<span class="slug">
{{job.repo.slug}}
</span>
#{{job.number}}
{{/link-to}}
{{/if}}
{{/view}}
{{else}}
There are no jobs
{{/each}}
</ul>
{{#if queue.isMore}}
<a {{action "showAll" queue}} class="show-more-jobs">
{{queue.leftLength}} more jobs - show all
</a>
{{/if}}
</li>
{{/each}}
</ul>