%= block_title(block.title) %>
<% unless block.images.blank? %>
<%= link_to content_tag(:span, _('Previous')), '#', :class => 'gallery-block-prev gallery-block-arrow icon-left' %>
<% block.images.in_groups_of(block.groups_of).each do |group| %>
-
<% group.reject{ |x| x.nil? }.each_with_index do |p, i| %>
-
<%= link_to image_tag(p.public_filename(:thumb), :alt => p.name, :title => p.name), p.view_url, :class => 'gallery-image' %>
<% end %>
<% end %>
<%= link_to content_tag(:span, _('Next')), '#', :class => 'gallery-block-next gallery-block-arrow icon-right' %>
<% else %>
<%= _('Please, edit this block and choose some gallery') %>
<% end %>