|
|
|
@ -156,17 +156,17 @@ class MessagesController < ApplicationController
|
|
|
|
|
@subject = @message.subject
|
|
|
|
|
@subject = "RE: #{@subject}" unless @subject.starts_with?('RE:')
|
|
|
|
|
|
|
|
|
|
#@content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}\n> "
|
|
|
|
|
#@temp = Message.new
|
|
|
|
|
##@temp.content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}> "
|
|
|
|
|
#@content << @message.content.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n"
|
|
|
|
|
#@content_html = textilizable(@content)
|
|
|
|
|
#@temp.content = @content_html
|
|
|
|
|
@content = "#{ll(Setting.default_language, :text_user_wrote, @message.author)} <br/> "
|
|
|
|
|
@content << @message.content.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n") + "</blockquote>\n\n<br/>"
|
|
|
|
|
@content = "<blockquote>" << @content
|
|
|
|
|
@content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}\n> "
|
|
|
|
|
@temp = Message.new
|
|
|
|
|
@temp.content = @content
|
|
|
|
|
#@temp.content = "> #{ll(Setting.default_language, :text_user_wrote, @message.author)}> "
|
|
|
|
|
@content << @message.content.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n"
|
|
|
|
|
@content_html = textilizable(@content)
|
|
|
|
|
@temp.content = @content_html
|
|
|
|
|
#@content = "#{ll(Setting.default_language, :text_user_wrote, @message.author)} <br/> "
|
|
|
|
|
#@content << @message.content.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n") + "</blockquote>\n\n<br/>"
|
|
|
|
|
#@content = "<blockquote>" << @content
|
|
|
|
|
#@temp = Message.new
|
|
|
|
|
#@temp.content = @content
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|