diff --git a/app/controllers/uploads_controller.rb b/app/controllers/uploads_controller.rb index 4f1e20bfc..560750ca2 100644 --- a/app/controllers/uploads_controller.rb +++ b/app/controllers/uploads_controller.rb @@ -5,6 +5,7 @@ class UploadsController < ApplicationController def new @upload = Upload.new + @upload_notice_wiki = WikiPage.titled(Danbooru.config.upload_notice_wiki_page).first if params[:url] @normalized_url = params[:url] headers = default_headers() diff --git a/app/views/uploads/new.html.erb b/app/views/uploads/new.html.erb index 5ea88ebc4..538d5a33b 100644 --- a/app/views/uploads/new.html.erb +++ b/app/views/uploads/new.html.erb @@ -4,22 +4,13 @@ <% if CurrentUser.can_upload? %>
-

Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>. - If you plan to upload your own art, you should read <%= Danbooru.config.app_name %>'s - <%= link_to "specific policy guidance", wiki_pages_path(:title => "howto:upload", :anchor => "dtext-self-upload") %> - first. More suitable sites to uploading your own artwork include DeviantArt, Tumblr, Twitter, Pixiv, etc.

+ <%= format_text(@upload_notice_wiki.body) %>
<% unless CurrentUser.can_upload_free? %>

You can upload <%= pluralize CurrentUser.upload_limit, "more post" %> today.

<% end %> - <% if params[:url].blank? %> -
-

You should be using Danbooru's official <%= link_to "upload bookmarklet", bookmarklet_path %> to upload! It makes uploading more convenient and does several things for you automatically such as fixing incorrect sources and optionally copying the artist's commentary.

-
- <% end %> - <%= render "image" %> <%= render "post", :post => @post %> <%= render "sources/info", :source => @source %> diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index 3f9dbaaf4..796e3f375 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -241,6 +241,10 @@ module Danbooru nil end + def upload_notice_wiki_page + "help:upload_notice" + end + # The number of posts displayed per page. def posts_per_page 20