Skip to content

AO3-7522 Update browser page title when editing news post#5909

Open
LepusCavum wants to merge 2 commits into
otwcode:masterfrom
LepusCavum:AO3-7522
Open

AO3-7522 Update browser page title when editing news post#5909
LepusCavum wants to merge 2 commits into
otwcode:masterfrom
LepusCavum:AO3-7522

Conversation

@LepusCavum

Copy link
Copy Markdown

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-7522

Purpose

What does this PR do?

This PR changes the browser tab title on the Admin News Editing page to say "Edit AO3 News Post" like the header.

Credit

Name: Megan Joy (lepuscavum418)
Pronouns: she/her

@sarken sarken left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, Megan Joy (lepuscavum418)!

Thank you so much for this pull request. It looks pretty good -- just a small note about the key name.

I've updated the Jira issue status to In Review so no one mistakenly creates a duplicate pull request. If you'd like the ability to comment on, assign, and transition issues in the future, you're welcome to create a Jira account! It makes things a bit easier for us on the organizational side if the Full Name on your Jira account either closely matches the name you'd like us to credit in the release notes or includes it in parentheses, e.g. "Nickname (CREDIT NAME)."

Once you've done that (or if you've already done it -- Jira has been unreliable about showing us new accounts in the admin panel lately), you can either reply here or send an email to otw-coders@transformativeworks.org with your account name and email address and we'll set up the permissions for you.

Thanks again for contributing! If you have any questions, you can contact us at the same email address listed above.

def edit
@admin_post = AdminPost.find(params[:id])
authorize @admin_post
@page_subtitle = t(".page_title_edit")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change this to just .page_title? That's our standard key name for browser page titles. We only add more words if there are variations, e.g., different text for published news or draft news.

@LepusCavum LepusCavum Jun 26, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I've pushed the update, just waiting on the automated checks to finish running. Thanks for the quick review!

@LepusCavum

Copy link
Copy Markdown
Author

Once you've done that (or if you've already done it -- Jira has been unreliable about showing us new accounts in the admin panel lately), you can either reply here or send an email to otw-coders@transformativeworks.org with your account name and email address and we'll set up the permissions for you.

Account Name: Megan Joy
Email address: lepuscavum418+jira@gmail.com

@sarken sarken left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Your Jira permissions should be all set next time you log in, but if you run into any issues, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants