Module: Redmine::QuoteReply::Builder
- Included in:
- JournalsController, MessagesController
- Defined in:
- lib/redmine/quote_reply.rb
Instance Method Summary collapse
- #quote_issue(issue, partial_quote: nil) ⇒ Object
- #quote_issue_journal(journal, indice:, partial_quote: nil) ⇒ Object
- #quote_message(message, partial_quote: nil) ⇒ Object
- #quote_root_message(message, partial_quote: nil) ⇒ Object
Instance Method Details
#quote_issue(issue, partial_quote: nil) ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/redmine/quote_reply.rb', line 42 def quote_issue(issue, partial_quote: nil) user = issue. build_quote( "#{ll(Setting.default_language, :text_user_wrote, user)}\n> ", issue.description, partial_quote ) end |
#quote_issue_journal(journal, indice:, partial_quote: nil) ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/redmine/quote_reply.rb', line 52 def quote_issue_journal(journal, indice:, partial_quote: nil) user = journal.user build_quote( "#{ll(Setting.default_language, :text_user_wrote_in, {value: journal.user, link: "#note-#{indice}"})}\n> ", journal.notes, partial_quote ) end |
#quote_message(message, partial_quote: nil) ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/redmine/quote_reply.rb', line 70 def (, partial_quote: nil) build_quote( "#{ll(Setting.default_language, :text_user_wrote_in, {value: ., link: "message##{.id}"})}\n> ", .content, partial_quote ) end |
#quote_root_message(message, partial_quote: nil) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/redmine/quote_reply.rb', line 62 def (, partial_quote: nil) build_quote( "#{ll(Setting.default_language, :text_user_wrote, .)}\n> ", .content, partial_quote ) end |