diff --git a/app/views/static/_footer.html.erb b/app/views/static/_footer.html.erb index ff8691c08..d87116039 100644 --- a/app/views/static/_footer.html.erb +++ b/app/views/static/_footer.html.erb @@ -1,3 +1,3 @@ \ No newline at end of file + Running Danbooru v<%= Danbooru.config.version %> — <%= link_to "Contact", contact_path %> + diff --git a/app/views/static/contact.html.erb b/app/views/static/contact.html.erb new file mode 100644 index 000000000..c1bb4a504 --- /dev/null +++ b/app/views/static/contact.html.erb @@ -0,0 +1,5 @@ +
You can reach the administrator of this site at <%= mail_to Danbooru.config.contact_email, "Contact", :encode => :hex %>.
diff --git a/config/routes.rb b/config/routes.rb index 2fb5b6bce..afc05c885 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -252,6 +252,7 @@ Danbooru::Application.routes.draw do match "/static/site_map" => "static#site_map", :as => "site_map" match "/static/terms_of_service" => "static#terms_of_service", :as => "terms_of_service" match "/static/mrtg" => "static#mrtg", :as => "mrtg" + match "/static/contact" => "static#contact", :as => "contact" root :to => "posts#index" end