mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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?
|
Are you sure you’re providing adequate time for other people to share their points of view, too?
|
||||||
|
|
||||||
get_a_room: |
|
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.
|
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.
|
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: |
|
too_many_replies: |
|
||||||
### You have reached the reply limit for this topic
|
### You have reached the reply limit for this topic
|
||||||
|
@ -156,13 +156,19 @@ class ComposerMessagesFinder
|
|||||||
target_user_id: @user.id,
|
target_user_id: @user.id,
|
||||||
topic_id: @details[:topic_id])
|
topic_id: @details[:topic_id])
|
||||||
|
|
||||||
|
reply_username = User.where(id: last_x_replies[0]).pluck(:username).first
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 'get_a_room',
|
id: 'get_a_room',
|
||||||
templateName: 'education',
|
templateName: 'education',
|
||||||
wait_for_typing: true,
|
wait_for_typing: true,
|
||||||
extraClass: 'education-message',
|
extraClass: 'education-message',
|
||||||
body: PrettyText.cook(
|
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
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user