iqdb similar queries now show file size

This commit is contained in:
r888888888
2015-02-22 11:41:40 -08:00
parent f12fb40e3e
commit 86b3cfa44b
2 changed files with 13 additions and 7 deletions

View File

@@ -39,6 +39,10 @@ article.post-preview {
#iqdb-similar { #iqdb-similar {
overflow: hidden; overflow: hidden;
.post-preview {
height: 169px;
}
} }
#saved-searches-nav { #saved-searches-nav {

View File

@@ -1,13 +1,15 @@
<% if params[:url] %> <% if params[:url] %>
<%= image_tag(@normalized_url, :title => "Preview", :id => "image") %> <%= image_tag(@normalized_url, :title => "Preview", :id => "image") %>
<% if params[:ref] %> <ul>
<p><strong>Referrer: </strong> <%= params[:ref] %></p> <% if @remote_size %>
<% end %> <li><strong>Size:</strong> <%= number_to_human_size(@remote_size) %></li>
<% end %>
<% if @remote_size %> <% if params[:ref] %>
<p><strong>Size:</strong> <%= number_to_human_size(@remote_size) %></p> <li><strong>Referrer:</strong> <%= params[:ref] %></li>
<% end %> <% end %>
<p id="scale"></p> <li id="scale"></li>
</ul>
<% end %> <% end %>