Refactor sources
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<% if params[:url] %>
|
||||
<% if ImageProxy.needs_proxy?(@normalized_url) %>
|
||||
<%= image_tag(image_proxy_uploads_path(:url => @normalized_url), :title => "Preview", :id => "image") %>
|
||||
<% if ImageProxy.needs_proxy?(@source.image_url) %>
|
||||
<%= image_tag(image_proxy_uploads_path(:url => @source.image_url), :title => "Preview", :id => "image") %>
|
||||
<% else %>
|
||||
<%= image_tag(@normalized_url, :title => "Preview", :id => "image") %>
|
||||
<%= image_tag(@source.image_url, :title => "Preview", :id => "image") %>
|
||||
<% end %>
|
||||
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user