Sha256: 2bea5e18a02bf2cffdff71f07ae78bacbbc02ee900c0b4bfb6cebdc1c85338ef
Contents?: true
Size: 883 Bytes
Versions: 3
Compression:
Stored size: 883 Bytes
Contents
<% cache "refinery/photo_gallery/albums/#{@page.album.id}/page/#{params[:page]}" do %> <% photos_for_page = @page.photos_for_page(params[:page]) %> <%= will_paginate photos_for_page %> <ul id="gallery" class="clearfix"> <% photos_for_page.each_with_index do |photo, index| %> <li> <%= link_to (image_tag photo.file.url(:album), :width => Refinery::PhotoGallery.album_dimensions[0], :height => Refinery::PhotoGallery.album_dimensions[1] ), photo.file.single.url, { :target=> "_blank", :class=>"fancybox", :data =>{:title=> t('.image') + ' ' + (index + 1 ).to_s + '/' + photos_for_page.total_pages.to_s + ' ' + photo.title + '<br/><br/>' + photo.description}, :rel=>"group", :title=> photo.title } %> </li> <% end %> </ul> <%= will_paginate photos_for_page %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems