From bf1574d11be9c93bc74ed33dc959aed892cdd764 Mon Sep 17 00:00:00 2001 From: Thomas Blazek Date: Tue, 27 Aug 2013 19:54:01 +0200 Subject: [PATCH] design --- app/views/galleries/index.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/galleries/index.html.erb b/app/views/galleries/index.html.erb index 4e7a551..7b00120 100644 --- a/app/views/galleries/index.html.erb +++ b/app/views/galleries/index.html.erb @@ -8,6 +8,9 @@ <%= gallery.desc %> <%= gallery.datum %>
+ <%for f in gallery.fotos.slice(1..[gallery.fotos.length, 4].min)%> + <%=image_tag(f.datei.thumb.url,{:class=>"img-polaroid"}) %> + <% end %>
<%= link_to 'Edit', edit_gallery_path(gallery) %> | <%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %> <% end %>