/upload/batch: use image proxy for embedded thumbnails.
This commit is contained in:
@@ -10,7 +10,11 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<%= link_to new_upload_path(url: url, ref: params[:url]), target: "_blank" do %>
|
<%= link_to new_upload_path(url: url, ref: params[:url]), target: "_blank" do %>
|
||||||
<%= image_tag url %>
|
<% if ImageProxy.needs_proxy?(url) %>
|
||||||
|
<%= image_tag(image_proxy_uploads_path(url: url)) %>
|
||||||
|
<% else %>
|
||||||
|
<%= image_tag url %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user