travis-web/assets/scripts/app/templates/repos/list.hbs
Piotr Sarnacki 840ce5a47d Revert "Merge pull request #308 from rwjblue/update-ember"
After upgrading ember to 1.8.1 tests pass, but I found a few cases where
things break (for example when navigating between certain routes). I'm
reverting for now.

This reverts commit fa5e9179af, reversing
changes made to 978c887123.
2014-11-12 12:11:53 +01:00

43 lines
1.4 KiB
Handlebars

<div id="search_box">
{{view Ember.TextField valueBinding="controller.search" placeholder="Search all repositories"}}
</div>
{{view Travis.ReposListTabsView}}
<div class="tab">
{{#if isLoaded}}
{{#collection Travis.ReposListView contentBinding="this"}}
{{#with view.repo}}
<div class="slug-and-status">
<span class="status"></span>
{{#if slug}}
{{#link-to "repo" this class="slug"}}{{slug}}{{/link-to}}
{{/if}}
</div>
{{#with lastBuildHash}}
{{#if repo.slug}}
{{#link-to "build" repo id class="last_build"}}{{number}}{{/link-to}}
{{/if}}
{{/with}}
{{#if lastBuildHash.number }}
<p class="summary">
<span class="duration_label">Duration:</span>
<abbr class="duration" {{bind-attr title="lastBuildStartedAt"}}>{{formatDuration lastBuildDuration}}</abbr>
</p>
<p class="summary">
<span class="finished-icon"></span><span class="finished_at_label">Finished:</span>
<abbr class="finished_at timeago" {{bind-attr title="lastBuildFinishedAt"}}>{{formatTime lastBuildFinishedAt}}</abbr>
</p>
{{/if}}
<div class="indicator"><span></span></div>
{{/with}}
{{else}}
<p class="empty">{{noReposMessage}}</p>
{{/collection}}
{{else}}
<div class="loading"><span>Loading</span></div>
{{/if}}
</div>