From f0591f3f5b52c1c6502af7b29b7e0f88fab38dfa Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 22 Dec 2016 21:53:10 -0600 Subject: [PATCH] Fix #2792: pull appeal text from wiki page. --- app/views/post_appeals/_new.html.erb | 4 +--- config/danbooru_default_config.rb | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/post_appeals/_new.html.erb b/app/views/post_appeals/_new.html.erb index 1acdfacfb..217364699 100644 --- a/app/views/post_appeals/_new.html.erb +++ b/app/views/post_appeals/_new.html.erb @@ -1,6 +1,4 @@ -

If this post was automatically deleted, then it means at least ten janitors all thought it didn't belong on the site. If you still believe this image was wrongfully deleted, then you can appeal its deletion.

- -

All users are limited to one appeal a day. For more details, please read the <%= link_to "wiki", wiki_pages_path(:title => "help:deletion_appeals") %>.

+<%= format_text(WikiPage.titled(Danbooru.config.appeal_notice_wiki_page).first.try(&:body)) %> <%= form_tag(post_appeals_path(:format => :js), :remote => true) do %> <%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %> diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index 3aeda506d..1b623381a 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -249,6 +249,10 @@ module Danbooru "help:flag_notice" end + def appeal_notice_wiki_page + "help:appeal_notice" + end + # The number of posts displayed per page. def posts_per_page 20