Corrected mistake in reply creation time (article.created_at) and removed extra <br> from quote header formatting

This commit is contained in:
Billy Zhou 2018-08-22 20:26:39 +08:00
parent 61b1a8733f
commit 2656ee965c

View file

@ -148,11 +148,11 @@ class EmailReply extends App.Controller
selected = App.Utils.text2html(selected)
if selected
date = @date_format(article.updated_by.created_at)
date = @date_format(article.created_at)
name = article.updated_by.displayName()
email = article.updated_by.email
quote_header = App.i18n.translateInline('On %s, %s <%s> wrote:', date, name, email)
selected = "<div><br><br/></div><div><blockquote type=\'cite\'><br>#{quote_header}<br><br>#{selected}<br></blockquote></div><div><br></div>"
selected = "<div><br><br/></div><div><blockquote type=\'cite\'>#{quote_header}<br><br>#{selected}<br></blockquote></div><div><br></div>"
# add selected text to body
body = selected + body