Skip to content

Commit 5ae8315

Browse files
committed
AO3-7408 Change subtitle not title for Request Invitations page
1 parent 15f51bd commit 5ae8315

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

app/controllers/user_invite_requests_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def index
1111
# GET /user_invite_requests/new
1212
# GET /user_invite_requests/new.xml
1313
def new
14-
@page_title = ts('New User Invitation Request')
14+
@page_subtitle = t(".page_title")
1515
if AdminSetting.request_invite_enabled?
1616
if logged_in?
1717
@user = current_user

config/locales/controllers/en.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ en:
376376
status:
377377
ban_notice_html: Your account has been banned. You are not permitted to post or edit content on AO3. Please check your email or %{contact_abuse_link} for more information.
378378
suspension_notice_html: Your account has been suspended until %{suspended_until}. You cannot post, edit, or delete content until your suspension has ended. Please check your email or %{contact_abuse_link} for more information.
379+
user_invite_requests:
380+
new:
381+
page_title: Request Invitations
379382
works:
380383
create:
381384
draft_notice_html: Draft was successfully created. It will be %{scheduled_for_deletion_bold} on %{deletion_date}.

features/other_a/invite_request.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Feature: Invite requests
77
And I am logged in as "user1"
88
When I try to invite a friend from my user page
99
And I follow "Request invitations"
10+
Then the page title should include "Request Invitations"
1011
When I fill in "How many invitations would you like? (max 10)" with "3"
1112
And I fill in "Please specify why you'd like them:" with "I want them for a friend"
1213
And I press "Send Request"

0 commit comments

Comments
 (0)