Sha256: 3d22661fa5423cbab19f56f22dc8926c0b980bf06b65d01b439ecf7909d385d4
Contents?: true
Size: 1000 Bytes
Versions: 2
Compression:
Stored size: 1000 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| %> <% if photo.css_class.present? %> <li class="<%= photo.css_class %>" > <% else %> <li> <% end %> <%= link_to (image_tag photo.preview_link(:album), :width => Refinery::PhotoGallery.album_dimensions[0], :height => Refinery::PhotoGallery.album_dimensions[1] ), photo.link_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-photo-gallery-0.3.0 | app/views/refinery/photo_gallery/albums/_photos.html.erb |
refinerycms-photo-gallery-0.2.0 | app/views/refinery/photo_gallery/albums/_photos.html.erb |