Skip to content

Commit

Permalink
Don't show blank page in carousel - fixes emberjs#124
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Aug 8, 2012
1 parent 8795103 commit 39b377b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/about.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ App.peopleController = Em.ArrayController.create({
</a>
</li>
<% end %>
<% (4 - data.users.length % 4).times do %>
<li class="user empty"></li>
<% gap = 4 - data.users.length % 4 %>
<% if gap < 4 %>
<% gap.times do %>
<li class="user empty"></li>
<% end %>
<% end %>
</ul>
</div>
Expand Down

0 comments on commit 39b377b

Please sign in to comment.