Sha256: ecf7f3fd3e09ff03ab52637dd92ce9e41ddecc789fdffc4b85e7db11efae1322

Contents?: true

Size: 431 Bytes

Versions: 8

Compression:

Stored size: 431 Bytes

Contents

module Hydra
  module DownloadsHelperBehavior
    
    def list_downloadables( datastreams, mime_types=["application/pdf"])
      result = "<ul>" 
             
      datastreams.each_value do |ds|
        result << "<li>"
        result << link_to(ds.label, asset_downloads_path(ds.pid, :download_id=>ds.dsid))
        result << "</li>"     
      end
          
      result << "</ul>"
      return result
    end
    
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hydra-head-3.3.0 app/helpers/hydra/downloads_helper_behavior.rb
hydra-head-3.2.2 app/helpers/hydra/downloads_helper_behavior.rb
hydra-head-3.2.1 app/helpers/hydra/downloads_helper_behavior.rb
hydra-head-3.2.0 app/helpers/hydra/downloads_helper_behavior.rb
hydra-head-3.2.0.pre3 app/helpers/hydra/downloads_helper_behavior.rb
hydra-head-3.2.0.pre2 app/helpers/hydra/downloads_helper_behavior.rb
hydra-head-3.2.0.pre1 app/helpers/hydra/downloads_helper_behavior.rb
hydra-head-3.1.5 app/helpers/hydra/downloads_helper_behavior.rb