31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
<h1>Upload #<%= @upload.id %></h1>
|
|
|
|
<ul>
|
|
<li>Date: <%= @upload.created_at %></li>
|
|
<li>Source: <%= @upload.source %></li>
|
|
<li>Tags: <%= @upload.tag_string %></li>
|
|
</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? %>
|
|
<p>This upload is being processed. Please wait a few seconds.</p>
|
|
<% else %>
|
|
<p>An error occurred: <%= @upload.status %></p>
|
|
<% end %>
|
|
|
|
<p>
|
|
You can <%= link_to "upload another file", new_upload_path %> or <%= link_to "view your current uploads", uploads_path(:search => {:uploader_id_eq => CurrentUser.id}) %>.
|
|
<% if CurrentUser.user.is_moderator? && @upload.is_pending? %>
|
|
<%= link_to "Force update", upload_path(@upload, :format => "js"), :remote => true, :method => :put %>.
|
|
<% end %>
|
|
</p>
|
|
|
|
<%= render "posts/partials/common/secondary_links" %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Upload - <%= Danbooru.config.app_name %>
|
|
<% end %>
|