display more info in upload page

This commit is contained in:
Albert Yi
2018-06-19 12:44:15 -07:00
parent a560d61b68
commit 2ec97bc8ba

View File

@@ -6,6 +6,17 @@
<li>Date: <%= @upload.created_at %></li>
<li>Source: <%= @upload.source %></li>
<li>Tags: <%= @upload.tag_string %></li>
<% if @upload.md5.present? %>
<li>MD5: <%= @upload.md5 %>
<% end %>
<% if @upload.file_size.present? %>
<li>
Size: <%= number_to_human_size(@upload.file_size) %></li>
<% if @upload.image_width.present? %>
(<span itemprop="width"><%= @upload.image_width %></span>x<span itemprop="height"><%= @upload.image_height %></span>)
<% end %>
</li>
<% end %>
</ul>
<% if @upload.is_completed? %>