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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-11 10:19:19 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-11 10:19:19 +0400
commite49ec46461ef033fb54c717378628a31bd33248b (patch)
treeb7f0c682c5f80944cbc9df417be89859af5405d0 /app/views/events/event/_note.html.haml
parent4da48868e57fdf5bfd41b680f5452450807c23f5 (diff)
Open note image attachment in new tab
Diffstat (limited to 'app/views/events/event/_note.html.haml')
-rw-r--r--app/views/events/event/_note.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/events/event/_note.html.haml b/app/views/events/event/_note.html.haml
index 9dd0767e896..8384bbecd06 100644
--- a/app/views/events/event/_note.html.haml
+++ b/app/views/events/event/_note.html.haml
@@ -13,9 +13,10 @@
= sanitize(markdown(truncate(event.target.note, length: 150)), tags: %w(a img b pre p))
- note = event.target
- if note.attachment.url
- = link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do
- - if note.attachment.image?
+ - if note.attachment.image?
+ = link_to note.attachment.url, target: '_blank' do
= image_tag note.attachment.url, class: 'note-image-attach'
- - else
+ - else
+ = link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do
%i.icon-paper-clip
= note.attachment_identifier