Sha256: 6c4af3bd4783e02acd205e8bdcf026f47216cbe78d50bc29883e4172d4314fe2
Contents?: true
Size: 654 Bytes
Versions: 19
Compression:
Stored size: 654 Bytes
Contents
module MessageTrain # Attachments helper 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
19 entries across 19 versions & 1 rubygems