Commit cfdf94fc279e45ddbe0bbb94022a7488c663501c
1 parent
0d3b7584
Exists in
master
and in
4 other branches
use attachment secure_url for Attachemnt page
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/projects/files.html.haml
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | - @notes.each do |note| | 9 | - @notes.each do |note| |
10 | %tr | 10 | %tr |
11 | %td | 11 | %td |
12 | - %a{href: note.attachment.url} | 12 | + = link_to note.attachment.secure_url, target: "_blank" do |
13 | = image_tag gravatar_icon(note.author_email), class: "avatar s24" | 13 | = image_tag gravatar_icon(note.author_email), class: "avatar s24" |
14 | = note.attachment_identifier | 14 | = note.attachment_identifier |
15 | %td | 15 | %td |