<div class="travis-lint">
  <p>Travis Lint for clean .yml files
    <a {{bind-attr href="lintUrl"}}>lint.travis-ci.org/{{repo.slug}}</a>
  </p>
</div>

<table id="requests" class="list">
  <thead>
    <tr>
      <th>Request</th>
      <th>Commit</th>
      <th>Build</th>
      <th>Commit message</th>
      <th>Type</th>
      <th>Message</th>
    </tr>
  </thead>

  <tbody>
    {{#each request in controller itemController="request"}}
      <tr {{bind-attr class="requestClass"}}>
        <td class="request-id">
          <span class="status"></span>
          {{request.id}}
        </td>
        <td>{{githubCommitLink request.repo.slug request.commit.sha}}</td>
        <td>
          {{#if request.build}}
            {{#link-to "build" request.build}}#{{request.build.number}}{{/link-to}}
          {{else}}
            -
          {{/if}}
        </td>
        <td class="commit-message">{{{formatMessage request.commit.message short="true" repoBinding=build.repo}}}</td>
        <td>{{request.type}}</td>
        <td>{{request.message}}</td>
      </tr>
    {{/each}}
  </tbody>
</table>
