Patch #42548 » add_user_mention_feature_in_quotes.patch
| lib/redmine/quote_reply.rb | ||
|---|---|---|
|
user = issue.author
|
||
|
|
||
|
build_quote(
|
||
|
"#{ll(Setting.default_language, :text_user_wrote, user)}\n> ",
|
||
|
"#{ll(Setting.default_language, :text_user_wrote, "@#{user.login}")}\n> ",
|
||
|
issue.description,
|
||
|
partial_quote
|
||
|
)
|
||
| ... | ... | |
|
user = journal.user
|
||
|
|
||
|
build_quote(
|
||
|
"#{ll(Setting.default_language, :text_user_wrote_in, {value: journal.user, link: "#note-#{indice}"})}\n> ",
|
||
|
"#{ll(Setting.default_language, :text_user_wrote_in, {value: "@#{user.login}", link: "#note-#{indice}"})}\n> ",
|
||
|
journal.notes,
|
||
|
partial_quote
|
||
|
)
|
||
| ... | ... | |
|
|
||
|
def quote_root_message(message, partial_quote: nil)
|
||
|
build_quote(
|
||
|
"#{ll(Setting.default_language, :text_user_wrote, message.author)}\n> ",
|
||
|
"#{ll(Setting.default_language, :text_user_wrote, "@#{message.author.login}")}\n> ",
|
||
|
message.content,
|
||
|
partial_quote
|
||
|
)
|
||
| ... | ... | |
|
|
||
|
def quote_message(message, partial_quote: nil)
|
||
|
build_quote(
|
||
|
"#{ll(Setting.default_language, :text_user_wrote_in, {value: message.author, link: "message##{message.id}"})}\n> ",
|
||
|
"#{ll(Setting.default_language, :text_user_wrote_in, {value: "@#{message.author.login}", link: "message##{message.id}"})}\n> ",
|
||
|
message.content,
|
||
|
partial_quote
|
||
|
)
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »