mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
UX: Include the username and link of the user for get_a_room
This commit is contained in:
parent
9fe4427071
commit
5a4c393231
|
@ -317,13 +317,13 @@ en:
|
|||
Are you sure you’re providing adequate time for other people to share their points of view, too?
|
||||
|
||||
get_a_room: |
|
||||
### You’re replying a lot to the same person
|
||||
### You’re replying a lot to @%{reply_username}
|
||||
|
||||
You’ve already replied %{count} times to this person in this particular topic.
|
||||
|
||||
Have you considered replying to *other* people in the discussion, too? A great discussion involves many voices and perspectives.
|
||||
|
||||
If you’d like to continue your conversation with this particular user at length, consider sending them a personal message.
|
||||
If you’d like to continue your conversation with this particular user at length, consider [sending them a personal message](/users/%{reply_username}).
|
||||
|
||||
too_many_replies: |
|
||||
### You have reached the reply limit for this topic
|
||||
|
|
|
@ -156,13 +156,19 @@ class ComposerMessagesFinder
|
|||
target_user_id: @user.id,
|
||||
topic_id: @details[:topic_id])
|
||||
|
||||
reply_username = User.where(id: last_x_replies[0]).pluck(:username).first
|
||||
|
||||
{
|
||||
id: 'get_a_room',
|
||||
templateName: 'education',
|
||||
wait_for_typing: true,
|
||||
extraClass: 'education-message',
|
||||
body: PrettyText.cook(
|
||||
I18n.t('education.get_a_room', count: SiteSetting.get_a_room_threshold)
|
||||
I18n.t(
|
||||
'education.get_a_room',
|
||||
count: SiteSetting.get_a_room_threshold,
|
||||
reply_username: reply_username
|
||||
)
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user