implements #2350
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<% if @results.any? %>
|
||||
<h3>Similar</h3>
|
||||
<% @results.each do |match| %>
|
||||
<%= PostPresenter.preview(Post.find(match.post_id), :tags => "status:any") %>
|
||||
<%= PostPresenter.preview(Post.find(match.post_id), :tags => "status:any", :size => true) %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<h3>Similar</h3>
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
<p><%= link_to "Fetch source data", source_path(:format => "json"), :id => "fetch-data-manual" %></p>
|
||||
<p><%= content_tag "span", "Loading source data...", :id => "loading-data", :style => "display: none;" %></p>
|
||||
<% end %>
|
||||
<p><%= content_tag "span", "Gallery. Tags may not apply to all images.", :id => "gallery-warning", :style => "display: none;" %></p>
|
||||
<p id="remote-size" style="display: none;"></p>
|
||||
<p id="gallery-warning" style="display: none;"><%= content_tag "span", "Gallery. Tags may not apply to all images." %></p>
|
||||
|
||||
<ul>
|
||||
<li><strong>Artist</strong>: <span id="source-artist"></span></li>
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
<% if params[:url] %>
|
||||
<%= image_tag(@normalized_url, :title => "Preview", :id => "image") %>
|
||||
|
||||
<% if params[:ref] %>
|
||||
<p><strong>Referrer: </strong> <%= params[:ref] %></p>
|
||||
<% end %>
|
||||
|
||||
<% if @remote_size %>
|
||||
<p><strong>Size:</strong> <%= number_to_human_size(@remote_size) %></p>
|
||||
<% end %>
|
||||
|
||||
<p id="scale"></p>
|
||||
<% end %>
|
||||
|
||||
@@ -2,5 +2,7 @@
|
||||
- post
|
||||
-->
|
||||
<% if post %>
|
||||
<h2 style="margin-bottom: 1em;">This post was probably already uploaded (<%= link_to "post ##{post.id}", post_path(post), :target => "_blank" %>)</h2>
|
||||
<h2 style="margin-bottom: 1em;">
|
||||
This post was probably already uploaded (<%= link_to "post ##{post.id}", post_path(post), :target => "_blank" %>)
|
||||
</h2>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user