Method: Sufia::Messages#file_list

Defined in:
lib/sufia/messages.rb

#file_list(files) ⇒ Object

Double-quotes are replaced with single ones so this list can be included in a data block. Ex:

<a href="#" data-content="<a href='#'>embedded link</a>" rel="popover">Click me</a>


44
45
46
# File 'lib/sufia/messages.rb', line 44

def file_list(files)
  files.map { |gf| link_to_file(gf) }.join(', ').tr("\"", "'")
end