24 lines
841 B
Plaintext
24 lines
841 B
Plaintext
<% if params[:url] %>
|
|
<div id="upload-image">
|
|
<% if ImageProxy.needs_proxy?(@source.image_url) %>
|
|
<%= image_tag(image_proxy_uploads_path(:url => @source.image_url), :title => "Preview", :id => "image") %>
|
|
<% elsif @source.image_url.present? %>
|
|
<%= image_tag(@source.image_url, :title => "Preview", :id => "image") %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<ul id="upload-image-metadata">
|
|
<li id="no-image-available"><em>No image preview available</em></li>
|
|
|
|
<% if @remote_size %>
|
|
<li><strong>Size:</strong> <%= number_to_human_size(@remote_size) %></li>
|
|
<% end %>
|
|
|
|
<% if params[:ref] %>
|
|
<li><strong>Referrer:</strong> <%= params[:ref] %></li>
|
|
<% end %>
|
|
|
|
<li id="scale-link"><span id="scale"></span> (<%= link_to "toggle size", "#", :id => "image-resize-to-window-link" %>)</li>
|
|
</ul>
|
|
<% end %>
|