1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-21 16:01:14 +00:00

Use path instead of URL of image in preview (#25295).

Patch by Krzysztof Zielonka.

git-svn-id: http://svn.redmine.org/redmine/trunk@16463 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-04-03 12:53:51 +00:00
parent 2660a2e5b3
commit a8d8c213bb

View File

@ -1,3 +1,3 @@
<%= render :layout => 'layouts/file' do %> <%= render :layout => 'layouts/file' do %>
<%= render :partial => 'common/image', :locals => {:path => download_named_attachment_url(@attachment, @attachment.filename), :alt => @attachment.filename} %> <%= render :partial => 'common/image', :locals => {:path => download_named_attachment_path(@attachment, @attachment.filename), :alt => @attachment.filename} %>
<% end %> <% end %>