Fix #2792: pull appeal text from wiki page.

This commit is contained in:
evazion
2016-12-22 21:53:10 -06:00
parent 5a1ac41450
commit f0591f3f5b
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,4 @@
<p>If this post was automatically deleted, <strong>then it means at least ten janitors all thought it didn't belong on the site</strong>. If you still believe this image was wrongfully deleted, then you can appeal its deletion.</p>
<p>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") %>.</p>
<%= 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 %>

View File

@@ -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