travis-web/assets/scripts/app/templates/repos/list.hbs
Piotr Sarnacki 42ed7cf4de Make sure that repo has a slug when creating a link to repo
Raw repo data is sometimes passed to linkTo helpers and in such case
Repo instance is created by id and it does not include slug. This commit
will be reverted after fixing "incomplete" implementation, which will
allow to preload Repo with both id and slug before searching for it.
2013-02-21 23:22:52 +01:00

41 lines
1.2 KiB
Handlebars

<div id="search_box">
{{view Ember.TextField valueBinding="controller.search"}}
</div>
{{view Travis.ReposListTabsView}}
<div class="tab">
{{#collection Travis.ReposListView contentBinding="this"}}
{{#with view.repo}}
<div class="slug-and-status">
<span class="status"></span>
{{#if slug}}
{{#linkTo repo this class="slug"}}{{slug}}{{/linkTo}}
{{/if}}
</div>
{{#with lastBuildHash}}
{{#if repo.slug}}
{{#linkTo build repo id class="last_build"}}{{number}}{{/linkTo}}
{{/if}}
{{/with}}
<p class="summary">
<span class="duration_label">{{t repositories.duration}}:</span>
<abbr class="duration" {{bindAttr title="lastBuildStartedAt"}}>{{formatDuration lastBuildDuration}}</abbr>,
<span class="finished_at_label">{{t repositories.finished_at}}:</span>
<abbr class="finished_at timeago" {{bindAttr title="lastBuildFinishedAt"}}>{{formatTime lastBuildFinishedAt}}</abbr>
</p>
<div class="indicator"><span></span></div>
{{#if description}}
<div class="info">
<p class="description">{{description}}</p>
</div>
{{/if}}
{{/with}}
{{else}}
<p class="empty"></p>
{{/collection}}
</div>