Skip to content

Commit 2bc82d0

Browse files
AO3-6942 update page title in admin view for spammer ban deletion user creations page to be dynamic
1 parent 915723a commit 2bc82d0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/controllers/admin/admin_users_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def confirm_delete_user_creations
143143
@bookmarks = @user.bookmarks
144144
@collections = @user.sole_owned_collections
145145
@series = @user.series
146+
@page_subtitle = t(".page_title", login: @user.login)
146147
end
147148

148149
def destroy_user_creations

config/locales/views/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ en:
148148
caution_html: Are you sure you want to <strong><em>delete</em></strong> all the works and comments created by this user, along with their %{bookmarks} bookmarks, %{series} series, and %{collections} collections? This <strong>cannot be undone</strong>.
149149
confirm: Are you sure? Remember this will destroy ALL these objects!
150150
page_heading: Delete Spammer Creations
151+
page_title: "%{login} - Confirm Deletion of User Creations"
151152
submit: Yes, Delete All Spammer Creations
152153
creations:
153154
navigation:

0 commit comments

Comments
 (0)