Sha256: c17366917ddd1d4fc9dc662010a06a28dc2c262eaf725c17bca922c4b89cbd9c

Contents?: true

Size: 587 Bytes

Versions: 52

Compression:

Stored size: 587 Bytes

Contents

module AgentsHelper
  include PictureFilesHelper
  def agent_custom_book_jacket(agent)
    link = ''
    agent.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: "agent_#{agent.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: "agent_#{agent.id}")
        end
      end
    end
    link.html_safe
  end
end

Version data entries

52 entries across 51 versions & 2 rubygems

Version Path
enju_biblio-0.3.4 app/helpers/agents_helper.rb
enju_biblio-0.3.3 app/helpers/agents_helper.rb
enju_biblio-0.3.2 app/helpers/agents_helper.rb
enju_biblio-0.3.1 app/helpers/agents_helper.rb
enju_biblio-0.3.0 app/helpers/agents_helper.rb
enju_biblio-0.3.0.rc.1 app/helpers/agents_helper.rb
enju_biblio-0.3.0.beta.2 app/helpers/agents_helper.rb
enju_biblio-0.2.5 app/helpers/agents_helper.rb
enju_biblio-0.2.4 app/helpers/agents_helper.rb
enju_biblio-0.2.3 app/helpers/agents_helper.rb
enju_biblio-0.2.2 app/helpers/agents_helper.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/app/helpers/agents_helper.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/app/helpers/agents_helper.rb
enju_biblio-0.2.1 app/helpers/agents_helper.rb
enju_biblio-0.2.0 app/helpers/agents_helper.rb
enju_biblio-0.2.0.beta.4 app/helpers/agents_helper.rb
enju_biblio-0.2.0.beta.3 app/helpers/agents_helper.rb
enju_biblio-0.2.0.beta.2 app/helpers/agents_helper.rb
enju_biblio-0.2.0.beta.1 app/helpers/agents_helper.rb
enju_biblio-0.1.3 app/helpers/agents_helper.rb