Sha256: e9a124f8239c7c28eff47a2b07e72491c39b99536a329d411a76e27e6e6ef8c4
Contents?: true
Size: 565 Bytes
Versions: 25
Compression:
Stored size: 565 Bytes
Contents
module MessageTrain module AttachmentsHelper def attachment_icon(attachment) html = "" if attachment.image? html << image_tag(attachment.attachment.url(:thumb)) else html << content_tag(:span, '', class: 'glyphicon glyphicon-save-file glyphicon-thumbnail') html << tag(:br) html << attachment.attachment_file_name end html.html_safe end def attachment_link(attachment) render partial: 'message_train/application/attachment_link', locals: { attachment: attachment } end end end
Version data entries
25 entries across 25 versions & 1 rubygems