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? || @upload.is_preprocessing? || @upload.is_preprocessed? %>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: <%= render_status(@upload) %>
<% if CurrentUser.user.is_builder? %> <%= render "static/backtrace", backtrace: @upload.backtrace.to_s.split(/\n/) %> <% 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}) %>.