mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
Better HTML emails, smarter email digests, new email section in admin with digest preview
This commit is contained in:
12
app/helpers/user_notifications_helper.rb
Normal file
12
app/helpers/user_notifications_helper.rb
Normal file
@ -0,0 +1,12 @@
|
||||
module UserNotificationsHelper
|
||||
|
||||
def indent(text, by=2)
|
||||
spacer = " " * by
|
||||
result = ""
|
||||
text.each_line do |line|
|
||||
result << spacer << line
|
||||
end
|
||||
result
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue
Block a user