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:
@@ -4,11 +4,6 @@
|
|||||||
<div id="a-contact">
|
<div id="a-contact">
|
||||||
<h1>Contact</h1>
|
<h1>Contact</h1>
|
||||||
|
|
||||||
<p>
|
<%= raw Danbooru.config.contact_page_html %>
|
||||||
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>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -242,6 +242,10 @@ module Danbooru
|
|||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The HTML that should go on the contact page.
|
||||||
|
def contact_page_html
|
||||||
|
end
|
||||||
|
|
||||||
# The number of posts displayed per page.
|
# The number of posts displayed per page.
|
||||||
def posts_per_page
|
def posts_per_page
|
||||||
20
|
20
|
||||||
|
|||||||
Reference in New Issue
Block a user