diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index cefdb39e9..0f0300cce 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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]= diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9a32f9721..b75d64569 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -198,7 +198,25 @@ module ApplicationHelper [:"#{prefix}-#{name}", value] end.to_h end - + + def page_title + if content_for(:page_title).present? + content_for(:page_title) + elsif action_name == "index" + "#{controller_name.titleize} - #{Danbooru.config.app_name}" + elsif action_name == "show" + "#{controller_name.singularize.titleize} - #{Danbooru.config.app_name}" + elsif action_name == "new" + "New #{controller_name.singularize.titleize} - #{Danbooru.config.app_name}" + elsif action_name == "edit" + "Edit #{controller_name.singularize.titleize} - #{Danbooru.config.app_name}" + elsif action_name == "search" + "Search #{controller_name.titleize} - #{Danbooru.config.app_name}" + else + "#{Danbooru.config.app_name}/#{controller_name}" + end + end + protected def nav_link_match(controller, url) url =~ case controller diff --git a/app/views/artist_commentaries/index.html.erb b/app/views/artist_commentaries/index.html.erb index 0f436650a..1057abdab 100644 --- a/app/views/artist_commentaries/index.html.erb +++ b/app/views/artist_commentaries/index.html.erb @@ -38,7 +38,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Artist Commentary - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artist_commentaries/search.html.erb b/app/views/artist_commentaries/search.html.erb index c904e5a27..bc8292a63 100644 --- a/app/views/artist_commentaries/search.html.erb +++ b/app/views/artist_commentaries/search.html.erb @@ -14,7 +14,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Search Artist Commentary - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artist_commentary_versions/index.html.erb b/app/views/artist_commentary_versions/index.html.erb index 97929c326..41c24cea5 100644 --- a/app/views/artist_commentary_versions/index.html.erb +++ b/app/views/artist_commentary_versions/index.html.erb @@ -16,7 +16,3 @@ <%= render "artist_commentaries/secondary_links" %> - -<% content_for(:page_title) do %> - Artist Commentary Versions - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artist_urls/index.html.erb b/app/views/artist_urls/index.html.erb index eaa027766..9dd1e1255 100644 --- a/app/views/artist_urls/index.html.erb +++ b/app/views/artist_urls/index.html.erb @@ -43,7 +43,3 @@ <%= render "artists/secondary_links" %> - -<% content_for(:page_title) do %> - Artist URLs - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artist_versions/index.html.erb b/app/views/artist_versions/index.html.erb index 824d16685..10b506e3c 100644 --- a/app/views/artist_versions/index.html.erb +++ b/app/views/artist_versions/index.html.erb @@ -8,7 +8,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Artist Versions - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artist_versions/search.html.erb b/app/views/artist_versions/search.html.erb index e89c10fca..a9c1c55b3 100644 --- a/app/views/artist_versions/search.html.erb +++ b/app/views/artist_versions/search.html.erb @@ -13,7 +13,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Search Artist Changes - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artists/edit.html.erb b/app/views/artists/edit.html.erb index 64c451061..1c22ca9e2 100644 --- a/app/views/artists/edit.html.erb +++ b/app/views/artists/edit.html.erb @@ -16,7 +16,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Artist - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artists/index.html.erb b/app/views/artists/index.html.erb index 2b8eca9ba..ff7b6b647 100644 --- a/app/views/artists/index.html.erb +++ b/app/views/artists/index.html.erb @@ -32,7 +32,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Artists - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/artists/new.html.erb b/app/views/artists/new.html.erb index e3e4faba2..bc37bbebc 100644 --- a/app/views/artists/new.html.erb +++ b/app/views/artists/new.html.erb @@ -9,7 +9,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Artist - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/bans/edit.html.erb b/app/views/bans/edit.html.erb index 213413430..553291a1a 100644 --- a/app/views/bans/edit.html.erb +++ b/app/views/bans/edit.html.erb @@ -13,7 +13,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Ban - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/bans/index.html.erb b/app/views/bans/index.html.erb index e5be766a3..870d32de5 100644 --- a/app/views/bans/index.html.erb +++ b/app/views/bans/index.html.erb @@ -45,7 +45,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Bans - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/bans/new.html.erb b/app/views/bans/new.html.erb index 5f424706e..32b0f34ec 100644 --- a/app/views/bans/new.html.erb +++ b/app/views/bans/new.html.erb @@ -6,7 +6,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Ban - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/bulk_update_requests/edit.html.erb b/app/views/bulk_update_requests/edit.html.erb index 5a46c3c48..db42a8de4 100644 --- a/app/views/bulk_update_requests/edit.html.erb +++ b/app/views/bulk_update_requests/edit.html.erb @@ -6,7 +6,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Bulk Update Request - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/bulk_update_requests/index.html.erb b/app/views/bulk_update_requests/index.html.erb index 92536b117..75bf9c310 100644 --- a/app/views/bulk_update_requests/index.html.erb +++ b/app/views/bulk_update_requests/index.html.erb @@ -10,7 +10,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Bulk Update Requests - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/bulk_update_requests/new.html.erb b/app/views/bulk_update_requests/new.html.erb index 1f9ed98f1..7280af32c 100644 --- a/app/views/bulk_update_requests/new.html.erb +++ b/app/views/bulk_update_requests/new.html.erb @@ -7,7 +7,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Bulk Update Request - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/bulk_update_requests/show.html.erb b/app/views/bulk_update_requests/show.html.erb index 880d7725b..c4a3fc344 100644 --- a/app/views/bulk_update_requests/show.html.erb +++ b/app/views/bulk_update_requests/show.html.erb @@ -22,7 +22,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Bulk Update Request - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/comments/edit.html.erb b/app/views/comments/edit.html.erb index b163f50a7..49ae24061 100644 --- a/app/views/comments/edit.html.erb +++ b/app/views/comments/edit.html.erb @@ -7,7 +7,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Comment - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/comments/index.html.erb b/app/views/comments/index.html.erb index cbc06e8b2..c473d03cd 100644 --- a/app/views/comments/index.html.erb +++ b/app/views/comments/index.html.erb @@ -13,7 +13,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Comments - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/comments/new.html.erb b/app/views/comments/new.html.erb index 25082c265..1854c471a 100644 --- a/app/views/comments/new.html.erb +++ b/app/views/comments/new.html.erb @@ -7,7 +7,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Comment - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/comments/search.html.erb b/app/views/comments/search.html.erb index 359cccfcf..2e82a51be 100644 --- a/app/views/comments/search.html.erb +++ b/app/views/comments/search.html.erb @@ -17,7 +17,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Search Comments - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/comments/show.html.erb b/app/views/comments/show.html.erb index f07f52ef5..8ee5091c4 100644 --- a/app/views/comments/show.html.erb +++ b/app/views/comments/show.html.erb @@ -17,7 +17,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Comment - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/delayed_jobs/index.html.erb b/app/views/delayed_jobs/index.html.erb index 62193ab0b..04610e1df 100644 --- a/app/views/delayed_jobs/index.html.erb +++ b/app/views/delayed_jobs/index.html.erb @@ -55,7 +55,3 @@ <%= numbered_paginator(@delayed_jobs) %> - -<% content_for(:page_title) do %> - Delayed Jobs - <%= Danbooru.config.app_name %> -<% end %> \ No newline at end of file diff --git a/app/views/favorite_groups/edit.html.erb b/app/views/favorite_groups/edit.html.erb index fb10a532f..3b4351b12 100644 --- a/app/views/favorite_groups/edit.html.erb +++ b/app/views/favorite_groups/edit.html.erb @@ -14,7 +14,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Favorite Group - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/favorite_groups/index.html.erb b/app/views/favorite_groups/index.html.erb index 6e30467aa..65d8975f2 100644 --- a/app/views/favorite_groups/index.html.erb +++ b/app/views/favorite_groups/index.html.erb @@ -32,7 +32,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Favorite Groups - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/favorite_groups/new.html.erb b/app/views/favorite_groups/new.html.erb index 91013659c..8fa1f6833 100644 --- a/app/views/favorite_groups/new.html.erb +++ b/app/views/favorite_groups/new.html.erb @@ -13,7 +13,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Favorite Group - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/forum_posts/edit.html.erb b/app/views/forum_posts/edit.html.erb index a2df840fc..17d2d0812 100644 --- a/app/views/forum_posts/edit.html.erb +++ b/app/views/forum_posts/edit.html.erb @@ -7,7 +7,3 @@ <%= render "forum_topics/secondary_links" %> - -<% content_for(:page_title) do %> - Edit Forum Post - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/forum_posts/index.html.erb b/app/views/forum_posts/index.html.erb index 9613706a6..4743c127f 100644 --- a/app/views/forum_posts/index.html.erb +++ b/app/views/forum_posts/index.html.erb @@ -30,7 +30,3 @@ <%= render "forum_topics/secondary_links" %> - -<% content_for(:page_title) do %> - Forum Posts - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/forum_posts/new.html.erb b/app/views/forum_posts/new.html.erb index cbe4189bb..5cb4bc67a 100644 --- a/app/views/forum_posts/new.html.erb +++ b/app/views/forum_posts/new.html.erb @@ -11,7 +11,3 @@ <%= render "forum_topics/secondary_links" %> - -<% content_for(:page_title) do %> - New Forum Post - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/forum_posts/search.html.erb b/app/views/forum_posts/search.html.erb index 21ccd9a5a..4caa22276 100644 --- a/app/views/forum_posts/search.html.erb +++ b/app/views/forum_posts/search.html.erb @@ -15,7 +15,3 @@ <%= render "forum_topics/secondary_links" %> - -<% content_for(:page_title) do %> - Search Forum Posts - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/forum_posts/show.html.erb b/app/views/forum_posts/show.html.erb index 839d1020f..44c844784 100644 --- a/app/views/forum_posts/show.html.erb +++ b/app/views/forum_posts/show.html.erb @@ -6,7 +6,3 @@ <%= render "forum_topics/secondary_links" %> - -<% content_for(:page_title) do %> - Forum Post - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/forum_topics/edit.html.erb b/app/views/forum_topics/edit.html.erb index cbb67c4a1..0c129aef2 100644 --- a/app/views/forum_topics/edit.html.erb +++ b/app/views/forum_topics/edit.html.erb @@ -5,7 +5,3 @@ <%= render "form", :forum_topic => @forum_topic %> - -<% content_for(:page_title) do %> - Edit Forum Topic - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/forum_topics/new.html.erb b/app/views/forum_topics/new.html.erb index 82c98c2e9..c45f51477 100644 --- a/app/views/forum_topics/new.html.erb +++ b/app/views/forum_topics/new.html.erb @@ -7,7 +7,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Forum Topic - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/ip_bans/index.html.erb b/app/views/ip_bans/index.html.erb index 323953d26..d69f92ef2 100644 --- a/app/views/ip_bans/index.html.erb +++ b/app/views/ip_bans/index.html.erb @@ -28,7 +28,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - IP Bans - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/ip_bans/new.html.erb b/app/views/ip_bans/new.html.erb index eb2372177..a0219ea8a 100644 --- a/app/views/ip_bans/new.html.erb +++ b/app/views/ip_bans/new.html.erb @@ -13,7 +13,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New IP Ban - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/janitor_trials/index.html.erb b/app/views/janitor_trials/index.html.erb index e37158688..bc053c072 100644 --- a/app/views/janitor_trials/index.html.erb +++ b/app/views/janitor_trials/index.html.erb @@ -27,7 +27,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Janitor Trials - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/janitor_trials/new.html.erb b/app/views/janitor_trials/new.html.erb index d18017484..be6989053 100644 --- a/app/views/janitor_trials/new.html.erb +++ b/app/views/janitor_trials/new.html.erb @@ -15,6 +15,3 @@ <%= render "secondary_links" %> -<% content_for(:page_title) do %> - New Janitor - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/layouts/blank.html.erb b/app/views/layouts/blank.html.erb index d80cca2db..0ef6c70b3 100644 --- a/app/views/layouts/blank.html.erb +++ b/app/views/layouts/blank.html.erb @@ -1,7 +1,7 @@ - <%= yield :page_title %> + <%= page_title %> <%= csrf_meta_tag %> diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index a882e9cf7..ac3d530c9 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -1,7 +1,7 @@ - <%= yield :page_title %> + <%= page_title %> <%= csrf_meta_tag %> diff --git a/app/views/mod_actions/index.html.erb b/app/views/mod_actions/index.html.erb index 9b0b46b3c..97d4ab292 100644 --- a/app/views/mod_actions/index.html.erb +++ b/app/views/mod_actions/index.html.erb @@ -26,7 +26,3 @@ <%= numbered_paginator(@mod_actions) %> - -<% content_for(:page_title) do %> - Mod Actions - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/news_updates/edit.html.erb b/app/views/news_updates/edit.html.erb index e19d6a131..08338987c 100644 --- a/app/views/news_updates/edit.html.erb +++ b/app/views/news_updates/edit.html.erb @@ -10,7 +10,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Update - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/news_updates/index.html.erb b/app/views/news_updates/index.html.erb index be2a1872a..bf05de4dd 100644 --- a/app/views/news_updates/index.html.erb +++ b/app/views/news_updates/index.html.erb @@ -26,7 +26,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - News Updates - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/news_updates/new.html.erb b/app/views/news_updates/new.html.erb index 9b2c9a309..171d24549 100644 --- a/app/views/news_updates/new.html.erb +++ b/app/views/news_updates/new.html.erb @@ -10,7 +10,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Update - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/note_versions/index.html.erb b/app/views/note_versions/index.html.erb index a4ec4f0b7..008e11cb4 100644 --- a/app/views/note_versions/index.html.erb +++ b/app/views/note_versions/index.html.erb @@ -13,7 +13,3 @@ <%= render "notes/secondary_links" %> - -<% content_for(:page_title) do %> - Note Versions - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb index bd9bdd2f4..26f8ec891 100644 --- a/app/views/notes/index.html.erb +++ b/app/views/notes/index.html.erb @@ -38,7 +38,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Notes - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/notes/search.html.erb b/app/views/notes/search.html.erb index efd414409..987fe1dd9 100644 --- a/app/views/notes/search.html.erb +++ b/app/views/notes/search.html.erb @@ -14,7 +14,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Search Notes - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/pool_versions/index.html.erb b/app/views/pool_versions/index.html.erb index 561bab43e..f0d30f871 100644 --- a/app/views/pool_versions/index.html.erb +++ b/app/views/pool_versions/index.html.erb @@ -13,7 +13,3 @@ <%= render "pools/secondary_links" %> - -<% content_for(:page_title) do %> - Pool Versions - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/pools/edit.html.erb b/app/views/pools/edit.html.erb index 53318d5bc..e2a7f718b 100644 --- a/app/views/pools/edit.html.erb +++ b/app/views/pools/edit.html.erb @@ -17,7 +17,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Pool - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/pools/index.html.erb b/app/views/pools/index.html.erb index d5c69fa13..30453668c 100644 --- a/app/views/pools/index.html.erb +++ b/app/views/pools/index.html.erb @@ -39,10 +39,6 @@ <%= render "secondary_links" %> -<% content_for(:page_title) do %> - Pools - <%= Danbooru.config.app_name %> -<% end %> - <% content_for(:html_header) do %> <% end %> diff --git a/app/views/pools/new.html.erb b/app/views/pools/new.html.erb index b1156a0f4..0f31f9b92 100644 --- a/app/views/pools/new.html.erb +++ b/app/views/pools/new.html.erb @@ -17,7 +17,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - New Pool - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/post_appeals/index.html.erb b/app/views/post_appeals/index.html.erb index bd8b2bcff..53ee9918b 100644 --- a/app/views/post_appeals/index.html.erb +++ b/app/views/post_appeals/index.html.erb @@ -53,7 +53,3 @@ <%= numbered_paginator(@post_appeals) %> - -<% content_for(:page_title) do %> - Appeals - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/post_approvals/index.html.erb b/app/views/post_approvals/index.html.erb index ce0073786..8a960e8f5 100644 --- a/app/views/post_approvals/index.html.erb +++ b/app/views/post_approvals/index.html.erb @@ -36,7 +36,3 @@ <%= numbered_paginator(@post_approvals) %> - -<% content_for(:page_title) do %> - Approvals - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/post_events/index.html.erb b/app/views/post_events/index.html.erb index 8ea0685d8..2e2f3248a 100644 --- a/app/views/post_events/index.html.erb +++ b/app/views/post_events/index.html.erb @@ -31,7 +31,3 @@ - -<% content_for(:page_title) do %> - Events - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/post_flags/index.html.erb b/app/views/post_flags/index.html.erb index 598209725..c5c098026 100644 --- a/app/views/post_flags/index.html.erb +++ b/app/views/post_flags/index.html.erb @@ -61,7 +61,3 @@ <%= numbered_paginator(@post_flags) %> - -<% content_for(:page_title) do %> - Flags - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/post_replacements/index.html.erb b/app/views/post_replacements/index.html.erb index 6dc27a4c2..427b22c91 100644 --- a/app/views/post_replacements/index.html.erb +++ b/app/views/post_replacements/index.html.erb @@ -82,7 +82,3 @@ <%= numbered_paginator(@post_replacements) %> - -<% content_for(:page_title) do %> - Post Replacements - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/post_versions/index.html.erb b/app/views/post_versions/index.html.erb index 9f35c8c70..02afe6d3d 100644 --- a/app/views/post_versions/index.html.erb +++ b/app/views/post_versions/index.html.erb @@ -23,7 +23,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Post Changes - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/post_versions/search.html.erb b/app/views/post_versions/search.html.erb index 42df861be..28942d50e 100644 --- a/app/views/post_versions/search.html.erb +++ b/app/views/post_versions/search.html.erb @@ -13,7 +13,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Search Post Changes - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/saved_searches/edit.html.erb b/app/views/saved_searches/edit.html.erb index b483bf9f0..d661e2c6e 100644 --- a/app/views/saved_searches/edit.html.erb +++ b/app/views/saved_searches/edit.html.erb @@ -13,7 +13,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Saved Search - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/saved_searches/index.html.erb b/app/views/saved_searches/index.html.erb index b3e59e74b..8979f4d6a 100644 --- a/app/views/saved_searches/index.html.erb +++ b/app/views/saved_searches/index.html.erb @@ -37,7 +37,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Saved Searches - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/static/error.html.erb b/app/views/static/error.html.erb index c61cbaacc..a552c6377 100644 --- a/app/views/static/error.html.erb +++ b/app/views/static/error.html.erb @@ -5,3 +5,7 @@
Details
<%= render "static/backtrace", exception: @exception, backtrace: @backtrace %> <% end %> + +<% content_for(:page_title) do %> + Error - <%= @message %> - <%= Danbooru.config.app_name %> +<% end %> diff --git a/app/views/tag_alias_requests/new.html.erb b/app/views/tag_alias_requests/new.html.erb index 42a8eef79..c08e116ae 100644 --- a/app/views/tag_alias_requests/new.html.erb +++ b/app/views/tag_alias_requests/new.html.erb @@ -38,7 +38,3 @@ <%= render "tag_aliases/secondary_links" %> - -<% content_for(:page_title) do %> - Tag Alias Request - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tag_aliases/edit.html.erb b/app/views/tag_aliases/edit.html.erb index 96d16a305..4a739b07d 100644 --- a/app/views/tag_aliases/edit.html.erb +++ b/app/views/tag_aliases/edit.html.erb @@ -14,7 +14,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Tag Alias - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tag_aliases/index.html.erb b/app/views/tag_aliases/index.html.erb index c9fcf0b22..53a7c784a 100644 --- a/app/views/tag_aliases/index.html.erb +++ b/app/views/tag_aliases/index.html.erb @@ -8,7 +8,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Tag Aliases - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tag_aliases/show.html.erb b/app/views/tag_aliases/show.html.erb index 8f30f5586..80f77bf98 100644 --- a/app/views/tag_aliases/show.html.erb +++ b/app/views/tag_aliases/show.html.erb @@ -23,7 +23,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Tag Alias - <%= Danbooru.config.app_name %> -<% end %> \ No newline at end of file diff --git a/app/views/tag_corrections/new.html.erb b/app/views/tag_corrections/new.html.erb index 329b7713f..1aee04715 100644 --- a/app/views/tag_corrections/new.html.erb +++ b/app/views/tag_corrections/new.html.erb @@ -15,9 +15,5 @@ <%= submit_tag "Fix" %> <%= submit_tag "Cancel" %> <% end %> - - <% content_for(:page_title) do %> - Tag Correction - <%= Danbooru.config.app_name %> - <% end %> diff --git a/app/views/tag_implication_requests/new.html.erb b/app/views/tag_implication_requests/new.html.erb index 26c4cc87e..b62c53d90 100644 --- a/app/views/tag_implication_requests/new.html.erb +++ b/app/views/tag_implication_requests/new.html.erb @@ -38,7 +38,3 @@ <%= render "tag_implications/secondary_links" %> - -<% content_for(:page_title) do %> - Tag Implication Request - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tag_implications/edit.html.erb b/app/views/tag_implications/edit.html.erb index f37d8f514..a866a4ecc 100644 --- a/app/views/tag_implications/edit.html.erb +++ b/app/views/tag_implications/edit.html.erb @@ -14,7 +14,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Tag Implication - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tag_implications/index.html.erb b/app/views/tag_implications/index.html.erb index 1b93e2458..2b1a82fc0 100644 --- a/app/views/tag_implications/index.html.erb +++ b/app/views/tag_implications/index.html.erb @@ -8,7 +8,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Tag Implications - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tag_implications/show.html.erb b/app/views/tag_implications/show.html.erb index 3887d7225..ca0380c77 100644 --- a/app/views/tag_implications/show.html.erb +++ b/app/views/tag_implications/show.html.erb @@ -23,7 +23,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Tag Implication - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tags/edit.html.erb b/app/views/tags/edit.html.erb index dd5db56ea..f4c46da13 100644 --- a/app/views/tags/edit.html.erb +++ b/app/views/tags/edit.html.erb @@ -19,7 +19,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Tag - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index 603f379c1..0a6d6fa08 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb @@ -35,7 +35,3 @@ <%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Tags - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/uploads/index.html.erb b/app/views/uploads/index.html.erb index b29053e6f..fdc06467c 100644 --- a/app/views/uploads/index.html.erb +++ b/app/views/uploads/index.html.erb @@ -78,7 +78,3 @@ <%= render "uploads/secondary_links" %> - -<% content_for(:page_title) do %> - Uploads - <%= Danbooru.config.app_name %> -<% end %> diff --git a/app/views/uploads/new.html.erb b/app/views/uploads/new.html.erb index 7cc88f6a1..910812b0b 100644 --- a/app/views/uploads/new.html.erb +++ b/app/views/uploads/new.html.erb @@ -119,10 +119,6 @@ -<% content_for(:page_title) do %> - Upload - <%= Danbooru.config.app_name %> -<% end %> - <% content_for(:html_header) do %>