- <% end %>
-
- <%= render "image" %>
- <%= render "post", :post => @post %>
- <%= render "sources/info", :source => @source %>
-
- <%= error_messages_for "upload" %>
-
- <%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => "form"}) do |f| %>
- <%= hidden_field_tag :normalized_url, @normalized_url %>
-
- <% if CurrentUser.is_contributor? %>
-
- <%= f.label :file %>
- <%= f.file_field :file, :size => 50 %>
+ <% if CurrentUser.user.can_upload? %>
+
+
Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.
-
- <%= 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" %>
- <%= button_tag "Artist", :id => "find-artist-button", :type => "button" %>
- You can enter a URL to have <%= Danbooru.config.app_name %> automatically download and process it
-
+ <%= render "image" %>
+ <%= render "post", :post => @post %>
+ <%= render "sources/info", :source => @source %>
-
- <%= f.label :rating %>
+ <%= error_messages_for "upload" %>
-
-
-
-
- <%= f.label :parent_id, "Parent ID" %>
- <%= f.text_field :parent_id %>
-
-
- <% if @upload.has_artist_commentary? %>
-
- <%= f.label :artist_commentary_title, "Artist Commentary Title" %>
- <%= f.text_field :artist_commentary_title, :value => @upload.artist_commentary_title %>
-
-
-
- <%= f.label :artist_commentary_desc, "Artist Commentary" %>
- <%= f.text_area :artist_commentary_desc, :value => @upload.artist_commentary_desc, :size => "60x5" %>
-
-
-
-
-
- <% end %>
-
- <% if Danbooru.config.iqdb_hostname_and_port %>
- <% if params[:url] %>
-
-
Loading similar...
+ <% if CurrentUser.is_contributor? %>
+
+
- <% else %>
-
<% 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" %>
+ <%= button_tag "Artist", :id => "find-artist-button", :type => "button" %>
+ You can enter a URL to have <%= Danbooru.config.app_name %> automatically download and process it
+
+
+
+ <%= f.label :rating %>
+
+
+
+
+
+ <%= f.label :parent_id, "Parent ID" %>
+ <%= f.text_field :parent_id %>
+
+
+ <% if @upload.has_artist_commentary? %>
+
+ <%= f.label :artist_commentary_title, "Artist Commentary Title" %>
+ <%= f.text_field :artist_commentary_title, :value => @upload.artist_commentary_title %>
+
+
+
+ <%= f.label :artist_commentary_desc, "Artist Commentary" %>
+ <%= f.text_area :artist_commentary_desc, :value => @upload.artist_commentary_desc, :size => "60x5" %>
+
+
+
+
+
+ <% end %>
+
+ <% if Danbooru.config.iqdb_hostname_and_port %>
+ <% if params[:url] %>
+
+ <% else %>
+
+ <% end %>
+ <% end %>
+
+
+
+
+ <%= submit_tag "Submit", :class => "large" %>
+
+
+
+
+
<% end %>
-
-
-
-
- <%= submit_tag "Submit", :class => "large" %>
-
-
-
-
-
+ <% else %>
+
You <%= CurrentUser.user.upload_limited_reason %>
<% end %>