0
0
Fork 0

Add invite request to pending account notification e-mail (#10528)

Fix sorting of the pending accounts page
This commit is contained in:
Eugen Rochko 2019-04-10 00:36:01 +02:00 committed by GitHub
parent 36b39fbac5
commit 46cb36fd2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 4 deletions

View file

@ -117,4 +117,9 @@ module ApplicationHelper
def storage_host?
ENV['S3_ALIAS_HOST'].present? || ENV['S3_CLOUDFRONT_HOST'].present?
end
def quote_wrap(text, line_width: 80, break_sequence: "\n")
text = word_wrap(text, line_width: line_width - 2, break_sequence: break_sequence)
text.split("\n").map { |line| '> ' + line }.join("\n")
end
end