Skip to content

Commit

Permalink
Merge pull request #7865 from fjordllc/feature/correct-title-tag-user…
Browse files Browse the repository at this point in the history
…-comments-list-page

ユーザー個別ページのコメント一覧のtitleタグを修正
  • Loading branch information
komagata authored Jun 24, 2024
2 parents 51c3011 + 84dd666 commit b09dad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/users/comments/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- title "#{@user.login_name}コメント"
- title "#{@user.login_name}さんのコメント"
- set_meta_tags description: "#{@user.login_name}さんのコメントページです。"

= render 'users/page_title', user: @user
Expand Down
2 changes: 1 addition & 1 deletion test/system/user/comments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
class User::CommentsTest < ApplicationSystemTestCase
test 'show listing comments' do
visit_with_auth "/users/#{users(:hatsuno).id}/comments", 'hatsuno'
assert_equal 'hatsunoコメント | FBC', title
assert_equal 'hatsunoさんのコメント | FBC', title
end
end

0 comments on commit b09dad1

Please sign in to comment.