wrap the contents of the li, not the whole collection

This commit is contained in:
Josh Kalderimis 2013-10-07 21:00:35 +02:00
parent 32c1f31241
commit 0d4babb07e

View File

@ -6,8 +6,8 @@
<div class="tab"> <div class="tab">
{{#if isLoaded}} {{#if isLoaded}}
{{#linkTo "repo" repo}} {{#collection Travis.ReposListView contentBinding="this"}}
{{#collection Travis.ReposListView contentBinding="this"}} {{#linkTo "repo" this}}
{{#with view.repo}} {{#with view.repo}}
<div class="slug-and-status"> <div class="slug-and-status">
<span class="status"></span> <span class="status"></span>
@ -32,10 +32,10 @@
<div class="indicator"><span></span></div> <div class="indicator"><span></span></div>
{{/with}} {{/with}}
{{else}} {{/linkTo}}
<p class="empty">{{noReposMessage}}</p> {{else}}
{{/collection}} <p class="empty">{{noReposMessage}}</p>
{{/linkTo}} {{/collection}}
{{else}} {{else}}
<div class="loading"><span>Loading</span></div> <div class="loading"><span>Loading</span></div>
{{/if}} {{/if}}