{{#if cachesExist}}
  <div class="caches-header">
    <h1 class="caches-title">All caches <small>(<a href="http://docs.travis-ci.com/user/caching/" title="">documentation</a>)</small></h1>
    <a href="#" {{action "deleteRepoCache"}} class="{{if isDeleting 'deleting'}} delete-repo-caches button--delete">
      Delete all repository caches
    </a>
  </div>
  {{#if model.pushes.length}}
    <h2 class="caches-title">Pushes</h2>
    <ul id="caches" class="caches">
      {{#each  model.pushes as |cache|}}
        {{caches-item cache=cache repo=repo caches=model.pushes}}
      {{/each}}
    </ul>
  {{/if}}

  {{#if model.pullRequests.length}}
    <h2 class="caches-title">Pull Requests</h2>
    <ul class="caches">
      {{#each model.pullRequests as |cache|}}
        {{caches-item cache=cache repo=repo caches=model.pullRequests}}
      {{/each}}
    </ul>
  {{/if}}

{{else}}
  <p class="caches-helptext">No caches have been created yet,<br>read more on <a href="http://docs.travis-ci.com/user/caching/" title="">how to setup caching with your build</a>.</p>
{{/if}}
