This commit is contained in:
Thomas Blazek
2013-08-27 19:54:01 +02:00
parent f16b87fd2b
commit bf1574d11b

View File

@@ -8,6 +8,9 @@
<%= gallery.desc %> <%= gallery.desc %>
<%= gallery.datum %> <%= gallery.datum %>
<br> <br>
<%for f in gallery.fotos.slice(1..[gallery.fotos.length, 4].min)%>
<%=image_tag(f.datei.thumb.url,{:class=>"img-polaroid"}) %>
<% end %><br>
<%= link_to 'Edit', edit_gallery_path(gallery) %> | <%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %> <%= link_to 'Edit', edit_gallery_path(gallery) %> | <%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %>
</div> </div>
<% end %> <% end %>