<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>
