Upload #<%= @upload.id %>

<% if @upload.is_completed? %>

This upload has finished processing. <%= link_to "View the post", post_path(@upload.post_id) %>.

<% elsif @upload.is_pending? %>

This upload is waiting to be processed. Please wait a few seconds.

<% elsif @upload.is_processing? %>

This upload is being processed. Please wait a few seconds.

<% elsif @upload.is_duplicate? %>

This upload is a duplicate: <%= link_to "post ##{@upload.duplicate_post_id}", post_path(@upload.duplicate_post_id) %>

<% else %>

An error occurred: <%= @upload.status %>

<% if CurrentUser.user.is_builder? %> <% end %> <% if @upload.is_downloadable? %> <%= form_tag(upload_path(@upload), :method => :put) do %> <% submit_tag "Retry" %> <% end %> <% end %> <% end %>

You can <%= link_to "upload another file", new_upload_path %> or <%= link_to "view your current uploads", uploads_path(:search => {:uploader_id => CurrentUser.id}) %>. <% if CurrentUser.user.is_moderator? && @upload.is_pending? %> <%= link_to "Force update", upload_path(@upload, :format => "js"), :remote => true, :method => :put %>. <% end %>

<%= render "posts/partials/common/secondary_links" %> <% content_for(:page_title) do %> Upload - <%= Danbooru.config.app_name %> <% end %> <% if @upload.is_pending? || @upload.is_processing? %> <% content_for(:html_header) do %> <% end %> <% end %>