{{#if content.isLoaded}}
  <table id="builds" class="list">
    <thead>
      <tr>
        <th>{{t builds.name}}</th>
        <th>{{t builds.message}}</th>
        <th>
          {{t builds.commit}}
        </th>
        <th class="committer">
          {{t builds.committer}}
        </th>
        {{#if view.isPullRequestsList}}
          <th>
            {{t builds.pr}}
          </th>
        {{/if}}
        <th>{{t builds.duration}}</th>
        <th>{{t builds.finished_at}}</th>
      </tr>
    </thead>

    <tbody>
      {{#each build in controller}}
        {{#view Travis.BuildsItemView contextBinding="build"}}
          <td class="number">
            <span class="status"></span>
            {{#if id}}
              {{#linkTo "build" repo this}}
                {{number}}
              {{/linkTo}}
            {{/if}}
          </td>
          <td class="message">
            {{{formatMessage commit.message short="true" repoBinding=build.repo}}}
          </td>
          <td class="commit">
            <a {{bindAttr href="view.urlGithubCommit"}}>
              {{formatCommit commit}}
            </a>
          </td>
          <td class="committer">
            {{commit.committerName}}
          </td>
          {{#if view.isPullRequestsList}}
            <td>
              <a {{bindAttr href="view.urlGithubPullRequest"}}>
                #{{pullRequestNumber}}
              </a>
            </td>
          {{/if}}
          <td class="duration" {{bindAttr title="duration"}}>
            {{formatDuration duration}}
          </td>
          <td class="finished_at timeago" {{bindAttr title="formattedFinishedAt"}}>
            {{formatTime finishedAt}}
          </td>
        {{/view}}
      {{/each}}
    </tbody>
  </table>
  {{#if displayShowMoreButton}}
    <p>
      {{view view.ShowMoreButton}}
      {{#if isLoading}}
        <span class="loading"></span>
      {{/if}}
    </p>
  {{/if}}
{{else}}
  <div class="loading"><span>Loading</span></div>
{{/if}}
