<p><%= link_to 'Nowy pokaz slajdow', new_slideshow_path %></p>
<div id="slideshow-summaries">
<% for slideshow in @slideshows %>
  <div class="slideshow-summary">
    <div class="slideshow-caption">
    	<%= slideshow.name %>
      <small>(<%= slideshow.slides.size %> slajdów)</small>
    </div>
    <div class="slideshow-thumbnails">
      <% 5.times do |i| -%>
      	<%= thumbnail_tag slideshow.slides[i] %>
      <% end -%>
      &nbsp;<strong>. . .</strong>
   	</div>
    <div class="slideshow-controls">
	    <%= link_to 'Odtwarzanie', slideshow %>
	    <%= link_to 'Edytowanie', edit_slideshow_path(slideshow) %>
	    <%= link_to 'Usuwanie', slideshow, :confirm => 'Czy aby na pewno?', :method => :delete %>
    </div>
  </div> 
  <br /> 
<% end %> 
</div> 
<br /> 
