Skip to content

Commit

Permalink
AO3-6768
Browse files Browse the repository at this point in the history
update page subtitle in the drafts page
  • Loading branch information
mystyrust committed Sep 17, 2024
1 parent f3f1bbe commit 034d106
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/works_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def drafts
redirect_to logged_in? ? user_path(current_user) : new_user_session_path
return
end

@page_subtitle = ts("%{username} - Drafts", username: @user.login)

Check warning on line 165 in app/controllers/works_controller.rb

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards Raw Output: app/controllers/works_controller.rb:165:22: C: I18n/DeprecatedHelper: Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards

if params[:pseud_id]
@pseud = @user.pseuds.find_by(name: params[:pseud_id])
Expand Down

0 comments on commit 034d106

Please sign in to comment.