Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/events/event/_note.html.haml')
-rw-r--r--app/views/events/event/_note.html.haml13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/events/event/_note.html.haml b/app/views/events/event/_note.html.haml
index ac380a9a5e3..20c3b927067 100644
--- a/app/views/events/event/_note.html.haml
+++ b/app/views/events/event/_note.html.haml
@@ -25,9 +25,10 @@
%span.event-note
= markdown truncate(event.target.note, length: 70)
- note = event.target
- = link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
- - if note.attachment.image?
- = image_tag note.attachment.url, class: 'note-image-attach'
- - else
- %i.icon-paper-clip
- = note.attachment_identifier
+ - if note.attachment.url
+ = link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
+ - if note.attachment.image?
+ = image_tag note.attachment.url, class: 'note-image-attach'
+ - else
+ %i.icon-paper-clip
+ = note.attachment_identifier