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 "post", :post => @post %> <%= render "sources/info", :source => @source %> <%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => "form"}) do |f| %> <%= hidden_field_tag :url, params[:url] %> <%= hidden_field_tag :ref, params[:ref] %> <%= hidden_field_tag :normalized_url, @normalized_url %> <%= f.hidden_field :referer_url, :value => @source.try(:referer_url) %> <% if CurrentUser.can_upload_free? %>
<% end %>
<%= f.label :file %> <%= f.file_field :file, :size => 50 %>
<%= f.label :source %> <% if params[:url].present? %> <%= f.text_field :source, :size => 50, :value => params[:url] %> <% else %> <%= f.text_field :source, :size => 50 %> <% end %> <%= button_tag "Similar", :id => "similar-button", :type => "button", :class => "ui-button ui-widget ui-corner-all sub gradient" %> <%= button_tag "Artist", :id => "find-artist-button", :type => "button", :class => "ui-button ui-widget ui-corner-all sub gradient" %> You can enter a URL to have <%= Danbooru.config.app_name %> automatically download and process it
<%= f.label :rating %>
<%= f.radio_button :rating, :e %> <%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals" %> <%= f.radio_button :rating, :q %> <%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %> <%= f.radio_button :rating, :s %> <%= f.label :rating_s, "Safe", :title => "Everything else" %>
<%= f.label :parent_id, "Parent ID" %> <%= f.text_field :parent_id %>
Commentary show ยป
<% if Danbooru.config.iqdbs_server %> <% if params[:url] %>

Loading similar...

<% else %> <% end %> <% end %>
<%= f.label :tag_string, "Tags" %> <%= f.text_area :tag_string, :size => "60x5", :data => { :autocomplete => "tag-edit" } %>
<%= button_tag "Related tags", :id => "related-tags-button", :type => "button", :class => "ui-button ui-widget ui-corner-all sub gradient" %> <% TagCategory.related_button_list.each do |category| %> <%= button_tag "#{TagCategory.related_button_mapping[category]}", :id => "related-#{category}-button", :type => "button", :class => "ui-button ui-widget ui-corner-all sub gradient" %> <% end %>
<%= submit_tag "Submit", :id => "submit-button", :class => "large ui-button ui-widget ui-corner-all gradient", data: {disable_with: false} %>

Artist

<% end %> <% else %>

You <%= CurrentUser.user.upload_limited_reason %>

<% end %>
<% content_for(:page_title) do %> Upload - <%= Danbooru.config.app_name %> <% end %> <%= render "uploads/secondary_links" %>