handle attahcment with send_file
This commit is contained in:
parent
ab0cfc0036
commit
a699ebdbcc
5 changed files with 19 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
|||
= markdown truncate(event.target.note, length: 70)
|
||||
- note = event.target
|
||||
- if note.attachment.url
|
||||
= link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
|
||||
= link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do
|
||||
- if note.attachment.image?
|
||||
= image_tag note.attachment.url, class: 'note-image-attach'
|
||||
- else
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
- if note.attachment.image?
|
||||
= image_tag note.attachment.url, class: 'note-image-attach'
|
||||
.attachment.pull-right
|
||||
= link_to note.attachment.url, target: "_blank" do
|
||||
= link_to note.attachment.secure_url, target: "_blank" do
|
||||
%i.icon-paper-clip
|
||||
= note.attachment_identifier
|
||||
.clear
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue