config: move contact page info to a config option.

Make the info on the contact page configurable instead of hard coded.
This commit is contained in:
evazion
2022-05-09 13:52:27 -05:00
parent 80f3778616
commit f65021fa01
2 changed files with 5 additions and 6 deletions

View File

@@ -4,11 +4,6 @@
<div id="a-contact">
<h1>Contact</h1>
<p>
You can contact the administrator of this site by
<%= link_to "sending a private message", new_dmail_path(dmail: { to_name: User.owner.name }) %> to <%= link_to_user User.owner, "@#{User.owner.name}" %>,
by messaging @<%= User.owner.name %> on the <%= link_to "#{Danbooru.config.canonical_app_name} Discord", Danbooru.config.discord_server_url %>,
or by sending an email to <%= mail_to Danbooru.config.contact_email, nil, encode: :hex %>.
</p>
<%= raw Danbooru.config.contact_page_html %>
</div>
</div>

View File

@@ -242,6 +242,10 @@ module Danbooru
nil
end
# The HTML that should go on the contact page.
def contact_page_html
end
# The number of posts displayed per page.
def posts_per_page
20