{{#view Travis.WorkersView}}
  <a id="toggle-workers" {{action "toggleWorkers" target="view"}}></a>
  <ul id="workers">
    {{#each group in controller.groups}}
      {{#view Travis.WorkersListView}}
        <li class="group">
          <h5 {{action "toggle" target="view"}}>
            {{group.firstObject.host}}
          </h5>
          <ul>
          {{#each worker in group}}
            {{#view Travis.WorkersItemView workerBinding="worker"}}
              <li class="worker">
                <div class="status"></div>
                {{#if worker.isWorking}}
                  {{#if worker.jobId}}
                    {{#linkTo "job" worker.repo worker.jobId}}
                      {{view.display}}
                    {{/linkTo}}
                  {{/if}}
                {{else}}
                  {{view.display}}
                {{/if}}
              </li>
            {{/view}}
          {{/each}}
          </ul>
        </li>
      {{/view}}
    {{else}}
      No workers
    {{/each}}
  </ul>
{{/view}}
