Refactor sources

This commit is contained in:
Albert Yi
2018-08-06 17:39:25 -07:00
parent 54363ffecf
commit 762dc3da24
71 changed files with 2340 additions and 2430 deletions

View File

@@ -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>