summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-17 16:18:42 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-17 16:18:42 +0200
commitcfdf94fc279e45ddbe0bbb94022a7488c663501c (patch)
tree40ef04727635322ffa365085d72df5b90bda447b
parent0d3b75845ae18475f74eaea0692ab532ce1ffd49 (diff)
downloadgitlab-ce-cfdf94fc279e45ddbe0bbb94022a7488c663501c.tar.gz
use attachment secure_url for Attachemnt page
-rw-r--r--app/views/projects/files.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/files.html.haml b/app/views/projects/files.html.haml
index d108308318e..36948eff658 100644
--- a/app/views/projects/files.html.haml
+++ b/app/views/projects/files.html.haml
@@ -9,7 +9,7 @@
- @notes.each do |note|
%tr
%td
- %a{href: note.attachment.url}
+ = link_to note.attachment.secure_url, target: "_blank" do
= image_tag gravatar_icon(note.author_email), class: "avatar s24"
= note.attachment_identifier
%td