Sha256: f6cd3977966dffe1e3565162c9fa3b3953659d6d9161f4d4fe7dbc847ec04dd2
Contents?: true
Size: 616 Bytes
Versions: 51
Compression:
Stored size: 616 Bytes
Contents
module PatronsHelper include PictureFilesHelper def patron_custom_book_jacket(patron) link = '' patron.picture_files.each_with_index do |picture_file, i| if i == 0 link += link_to(show_image(picture_file, :size => :thumb), picture_file_path(picture_file, :format => :download), :rel => "patron_#{patron.id}") else link += content_tag :span, :style => "display: none" do link_to(show_image(picture_file, :size => :thumb), picture_file_path(picture_file, :format => :download), :rel => "patron_#{patron.id}") end end end link.html_safe end end
Version data entries
51 entries across 51 versions & 1 rubygems