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

Version Path
enju_biblio-0.1.0.pre42 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre41 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre40 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre39 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre38 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre37 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre36 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre35 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre34 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre33 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre32 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre31 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre30 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre29 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre28 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre27 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre26 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre25 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre24 app/helpers/patrons_helper.rb
enju_biblio-0.1.0.pre23 app/helpers/patrons_helper.rb