Sha256: af012c6348f42c7b51196d72c8d25f3591a24d7a932b080cbdeb7e24d105bc82
Contents?: true
Size: 533 Bytes
Versions: 7
Compression:
Stored size: 533 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)) # if editor? # result << " <span>#{ds.attributes["mimeType"]}</span>" # end result << "</li>" end result << "</ul>" return result end end end
Version data entries
7 entries across 7 versions & 1 rubygems