diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-20 17:19:50 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-20 17:19:50 +0300 |
commit | 4ef6ffaad3e9b7a29b438722e5e101de78521ec7 (patch) | |
tree | 1441e030e91429d27eaa9e6addb3ee3952f5d22a /app/views/events/event/_note.html.haml | |
parent | c801df81fb48272b670b7448e3898a98cdb8b742 (diff) |
Split up AttachmentUploader.
Diffstat (limited to 'app/views/events/event/_note.html.haml')
-rw-r--r-- | app/views/events/event/_note.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/events/event/_note.html.haml b/app/views/events/event/_note.html.haml index 0acb8538778..4ef18c09060 100644 --- a/app/views/events/event/_note.html.haml +++ b/app/views/events/event/_note.html.haml @@ -18,9 +18,9 @@ - note = event.target - if note.attachment.url - if note.attachment.image? - = link_to note.attachment.secure_url, target: '_blank' do - = image_tag note.attachment.secure_url, class: 'note-image-attach' + = link_to note.attachment.url, target: '_blank' do + = image_tag note.attachment.url, class: 'note-image-attach' - else - = link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do + = link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do %i.fa.fa-paperclip = note.attachment_identifier |