Remove obsolete itemprop attributes. These were originally added in2dd4b4c, but they haven't been working sincee334c34removed the itemscope and itemtype attributes. They never worked right because they weren't nested properly, and they were never really useful because Google doesn't use the ImageObject schema for anything. * https://developers.google.com/search/docs/guides/intro-structured-data * https://developer.mozilla.org/en-US/docs/Web/HTML/Microdata * https://schema.org/docs/gs.html * https://schema.org/ImageObject
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
<div id="c-uploads">
|
|
<div id="a-show">
|
|
<h1>Upload #<%= @upload.id %></h1>
|
|
|
|
<ul>
|
|
<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? %>
|
|
(<%= @upload.image_width %>x<%= @upload.image_height %>)
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
<% if @upload.is_completed? %>
|
|
<p>This upload has finished processing. <%= link_to "View the post", post_path(@upload.post_id) %>.</p>
|
|
<% elsif @upload.is_pending? %>
|
|
<p>This upload is waiting to be processed. Please wait a few seconds.</p>
|
|
<% elsif @upload.is_processing? || @upload.is_preprocessing? || @upload.is_preprocessed? %>
|
|
<p>This upload is being processed. Please wait a few seconds.</p>
|
|
<% elsif @upload.is_duplicate? %>
|
|
<p>This upload is a duplicate: <%= link_to "post ##{@upload.duplicate_post_id}", post_path(@upload.duplicate_post_id) %></p>
|
|
<% else %>
|
|
<p>An error occurred: <%= render_status(@upload) %></p>
|
|
<% if CurrentUser.user.is_builder? %>
|
|
<%= render "static/backtrace", backtrace: @upload.backtrace.to_s.split(/\n/) %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<p>
|
|
You can <%= link_to "upload another file", new_upload_path %> or <%= link_to "view your current uploads", uploads_path(:search => {:uploader_id => CurrentUser.id}) %>.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "uploads/secondary_links" %>
|
|
|
|
<% if @upload.is_pending? || @upload.is_processing? || @upload.is_preprocessing? || @upload.is_preprocessed? %>
|
|
<% content_for(:html_header) do %>
|
|
<meta http-equiv="refresh" content="2">
|
|
<% end %>
|
|
<% end %>
|