work on controllers/views started
This commit is contained in:
@@ -165,21 +165,26 @@ module Danbooru
|
||||
}
|
||||
end
|
||||
|
||||
# If enabled, users must verify their email addresses.
|
||||
def enable_email_verification?
|
||||
true
|
||||
end
|
||||
|
||||
# Any custom code you want to insert into the default layout without
|
||||
# having to modify the templates.
|
||||
def custom_html_header_content
|
||||
<<-EOS
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var pageTracker = _gat._getTracker("UA-86094-4");
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}
|
||||
</script>
|
||||
EOS
|
||||
%{
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var pageTracker = _gat._getTracker("UA-86094-4");
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}
|
||||
</script>
|
||||
}.html_safe
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
module Danbooru
|
||||
class CustomConfiguration < Configuration
|
||||
# Define your custom overloads here
|
||||
def app_name
|
||||
"f"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -50,7 +50,11 @@ Danbooru::Application.routes.draw do |map|
|
||||
end
|
||||
resources :wiki_page_versions
|
||||
|
||||
match "/site_map" => "static#site_map"
|
||||
match "/site_map" => "static#site_map", :as => "site_map"
|
||||
match "/terms_of_service" => "static#terms_of_service", :as => "terms_of_service"
|
||||
match "/user_maintenance/delete_account" => "user_maintenance#delete_account", :as => "delete_account_info"
|
||||
match "/user_maintenance/login_reminder" => "user_maintenance#login_reminder", :as => "login_reminder_info"
|
||||
match "/user_maintenance/reset_password" => "user_maintenance#reset_password", :as => "reset_password_info"
|
||||
|
||||
root :to => "post#index"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user