Patch #42548 » add_user_mention_feature_in_quotes.patch
lib/redmine/quote_reply.rb | ||
---|---|---|
43 | 43 |
user = issue.author |
44 | 44 |
|
45 | 45 |
build_quote( |
46 |
"#{ll(Setting.default_language, :text_user_wrote, user)}\n> ",
|
|
46 |
"#{ll(Setting.default_language, :text_user_wrote, "@#{user.login}")}\n> ",
|
|
47 | 47 |
issue.description, |
48 | 48 |
partial_quote |
49 | 49 |
) |
... | ... | |
53 | 53 |
user = journal.user |
54 | 54 |
|
55 | 55 |
build_quote( |
56 |
"#{ll(Setting.default_language, :text_user_wrote_in, {value: journal.user, link: "#note-#{indice}"})}\n> ",
|
|
56 |
"#{ll(Setting.default_language, :text_user_wrote_in, {value: "@#{user.login}", link: "#note-#{indice}"})}\n> ",
|
|
57 | 57 |
journal.notes, |
58 | 58 |
partial_quote |
59 | 59 |
) |
... | ... | |
61 | 61 |
|
62 | 62 |
def quote_root_message(message, partial_quote: nil) |
63 | 63 |
build_quote( |
64 |
"#{ll(Setting.default_language, :text_user_wrote, message.author)}\n> ",
|
|
64 |
"#{ll(Setting.default_language, :text_user_wrote, "@#{message.author.login}")}\n> ",
|
|
65 | 65 |
message.content, |
66 | 66 |
partial_quote |
67 | 67 |
) |
... | ... | |
69 | 69 |
|
70 | 70 |
def quote_message(message, partial_quote: nil) |
71 | 71 |
build_quote( |
72 |
"#{ll(Setting.default_language, :text_user_wrote_in, {value: message.author, link: "message##{message.id}"})}\n> ",
|
|
72 |
"#{ll(Setting.default_language, :text_user_wrote_in, {value: "@#{message.author.login}", link: "message##{message.id}"})}\n> ",
|
|
73 | 73 |
message.content, |
74 | 74 |
partial_quote |
75 | 75 |
) |
- « Previous
- 1
- 2
- 3
- 4
- Next »