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? %>
<% end %>
<%= f.label :file %> <%= f.file_field :file, :size => 50 %>
Drag and drop a file here
<%= 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 show ยป
<%= f.label :tag_string, "Tags" %>
<%= f.text_area :tag_string, :size => "60x5", :spellcheck => false, :"data-autocomplete" => "tag-edit", :"data-shortcut" => "e", :value => params[:tag_string] %>
<%= render "related_tags/buttons" %>
<%= 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 %>
<% content_for(:html_header) do %> <% end %> <%= render "uploads/secondary_links" %>