Sha256: 4c7b9cfcae6e5511b24ef7c726ca53758ac39e5b37c747b65ce85a8b1c938181
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
module FileAttachmentsHelper def description_display(file_attachment) content_tag :p, { :id => "file_attachment_#{file_attachment.id}_description", :style => "max-width: 70%; float: right;", :class => 'file_attachment_description' } do file_attachment.description end end def name_display(file_attachment) content_tag :p, { :id => "file_attachment_#{file_attachment.id}_name", :class => 'file_attachment_name' } do link_to(file_attachment.name, download_file_attachment_path(file_attachment.id)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
file_share-0.1.3 | app/helpers/file_attachments_helper.rb |
file_share-0.1.2 | app/helpers/file_attachments_helper.rb |