views: standardize page titles.

This commit is contained in:
evazion
2019-08-24 22:55:35 -05:00
parent 2d34e69737
commit f151285038
89 changed files with 29 additions and 339 deletions

View File

@@ -4,7 +4,6 @@ class ApplicationController < ActionController::Base
before_action :reset_current_user
before_action :set_current_user
after_action :reset_current_user
before_action :set_title
before_action :normalize_search
before_action :set_started_at_session
before_action :api_check
@@ -190,10 +189,6 @@ class ApplicationController < ActionController::Base
end
end
def set_title
@page_title = Danbooru.config.app_name + "/#{params[:controller]}"
end
# Remove blank `search` params from the url.
#
# /tags?search[name]=touhou&search[category]=&search[order]=