views: add embed_wiki helper.

Also remove options to configure names of wiki notice pages. These names
generally don't need to be changed and we already hardcode links to wiki
pages in other places anyway.
This commit is contained in:
evazion
2020-01-27 13:04:28 -06:00
parent af044c45db
commit 588280c8cc
8 changed files with 11 additions and 36 deletions

View File

@@ -289,26 +289,6 @@ module Danbooru
nil
end
def upload_notice_wiki_page
"help:upload_notice"
end
def flag_notice_wiki_page
"help:flag_notice"
end
def appeal_notice_wiki_page
"help:appeal_notice"
end
def report_notice_wiki_page
"help:report_notice"
end
def replacement_notice_wiki_page
"help:replacement_notice"
end
# The number of posts displayed per page.
def posts_per_page
20