From fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 14 Oct 2023 11:12:05 -0400 Subject: Added comment replying --- app/views/comment_mailer/reply_comment_email.text.erb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/views/comment_mailer/reply_comment_email.text.erb (limited to 'app/views/comment_mailer/reply_comment_email.text.erb') diff --git a/app/views/comment_mailer/reply_comment_email.text.erb b/app/views/comment_mailer/reply_comment_email.text.erb new file mode 100644 index 0000000..bd60692 --- /dev/null +++ b/app/views/comment_mailer/reply_comment_email.text.erb @@ -0,0 +1,19 @@ +A reply has been posted to your comment on <%= @comment.blog.title %>. The original comment: + +--- + +<%= @comment.reply_to.body %> + +--- + +<%= @comment.username %> posted the following response: + +--- + +<%= @comment.body %> + +--- + +Posted: <%= @comment.published_at.strftime("%B #{@comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") %> + +See the comment on the web: <%= blog_url(@comment.blog, anchor: "comment-#{@comment.id}") %> -- cgit 1.4.1