ref: master
plugins/gallery_block/views/blocks/gallery.html.erb
<%= block_title(block.title, block.subtitle) %> <% unless block.images.blank? %> <%= link_to content_tag(:span, _('Previous')), '#', :class => 'gallery-block-prev gallery-block-arrow icon-left' %><%= 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 %><% block.images.in_groups_of(block.groups_of).each do |group| %>
- <% end %>
<% 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 %>