Upload
<% if CurrentUser.can_upload? %>
<%= format_text(@upload_notice_wiki.try(&:body)) %>
<% unless CurrentUser.can_upload_free? %>
Upload limit: <%= CurrentUser.user.presenter.upload_limit(self) %> .
<% end %>
<%= render "image" %>
<%= render "related_posts", source: @source %>
<%= render "sources/info" %>
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => "form"}) do |f| %>
<%= f.hidden_field :md5_confirmation %>
<%= f.hidden_field :referer_url, value: params[:ref] %>
<% if CurrentUser.can_upload_free? %>
<%= f.check_box :as_pending, :checked => params[:as_pending].present? %>
Upload for approval
<% end %>
<%= f.label :file %>
<%= f.file_field :file, :size => 50 %>
<%= f.label :source %>
<%= f.text_field :source, :size => 50, :value => params[:url] %>
<%= button_tag "Similar", :id => "similar-button", :type => "button", :class => "ui-button ui-widget ui-corner-all sub" %>
You can enter a URL to have <%= Danbooru.config.app_name %> automatically download and process it
<%= f.label :rating %>
<%= f.radio_button :rating, :e, :checked => (params[:rating] == "e") %>
<%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals" %>
<%= f.radio_button :rating, :q, :checked => (params[:rating] == "q") %>
<%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %>
<%= f.radio_button :rating, :s, :checked => (params[:rating] == "s") %>
<%= f.label :rating_s, "Safe", :title => "Everything else" %>
<%= f.label :parent_id, "Parent ID" %>
<%= f.text_field :parent_id, :value => params[:parent_id] %>
Commentary
<%= submit_tag "Submit", :id => "submit-button", :class => "large ui-button ui-widget ui-corner-all", data: { disable_with: false } %>
<%= render "related_tags/container" %>
<% end %>
<% else %>
You <%= CurrentUser.user.upload_limited_reason %>
<% end %>