Commit cbcfed40

mo khan <mo@mokhan.ca>
2013-06-02 14:14:04
don't show thumbnails unless there is more than one
1 parent 2b9e3c5
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -58,7 +58,7 @@
         <li class="span2">
           <a class="thumbnail gallery" href="<%= photo.image.large.url %>"><img src="<%= photo.image.thumb.url.to_s %>" alt="<%= @creation.name %>" /></a>
         </li>
-      <% end %>
+      <% end if @creation.photos.count > 1 %>
     </ul>
   </div>
   <div class="span6">