design
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<%= gallery.desc %>
|
<%= gallery.desc %>
|
||||||
<%= gallery.datum %>
|
<%= gallery.datum %>
|
||||||
<br>
|
<br>
|
||||||
<%for f in gallery.fotos.slice(1..[gallery.fotos.length, 4].min)%>
|
<%gallery.fotos.slice(1..[gallery.fotos.length, 4].min).each do |f|%>
|
||||||
<%=image_tag(f.datei.thumb.url,{:class=>"img-polaroid"}) %>
|
<%=image_tag(f.datei.thumb.url,{:class=>"img-polaroid"}) %>
|
||||||
<% end %><br>
|
<% 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?' } %>
|
||||||
|
|||||||
Reference in New Issue
Block a user