Fixed display of screenshots if count>0

This commit is contained in:
Christoph Haas 2013-08-06 22:34:13 +02:00
parent 3c03445f45
commit 355b1e08f8

View file

@ -5,6 +5,10 @@
<% @packages.each do |package| %>
<li>
<%= package.name %> <i>(<%= package.description %>)</i>
- has <%= package.screenshots.count %> screenshots
<% if package.screenshots.count>0 %>
<%= image_tag package.screenshots.first.image_url('small') %>
<% end %>
</li>
<% end %>
</ul>