diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-13 13:18:18 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-13 13:18:18 -0400 |
commit | 26a7339889929025495df59776d1a33ca19c77ae (patch) | |
tree | c4d6fa581ac816fe97ace4bd9c7f5c6cacfceabd /app/views/comment_mailer/new_pending_comment_email.html.haml | |
parent | d365294db7edd79f01b51ac30413707a556f84bb (diff) | |
download | thoughts-26a7339889929025495df59776d1a33ca19c77ae.tar.gz thoughts-26a7339889929025495df59776d1a33ca19c77ae.tar.bz2 thoughts-26a7339889929025495df59776d1a33ca19c77ae.zip |
Pending comments also send you an email now
Diffstat (limited to 'app/views/comment_mailer/new_pending_comment_email.html.haml')
-rw-r--r-- | app/views/comment_mailer/new_pending_comment_email.html.haml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/comment_mailer/new_pending_comment_email.html.haml b/app/views/comment_mailer/new_pending_comment_email.html.haml new file mode 100644 index 0000000..d3f7dca --- /dev/null +++ b/app/views/comment_mailer/new_pending_comment_email.html.haml | |||
@@ -0,0 +1,22 @@ | |||
1 | %p | ||
2 | A new comment has been posted on | ||
3 | = link_to @comment.blog.title, @comment.blog | ||
4 | that is pending moderation. | ||
5 | %p The details of the user that posted it: | ||
6 | %ul | ||
7 | %li | ||
8 | Name: | ||
9 | = @comment.username | ||
10 | %li | ||
11 | Email: | ||
12 | = @comment.email | ||
13 | - unless @comment.website.empty? | ||
14 | %li | ||
15 | Website: | ||
16 | = @comment.website | ||
17 | %p Here is the comment: | ||
18 | %blockquote= @comment.body | ||
19 | %p | ||
20 | Posted: | ||
21 | = @comment.created_at.strftime("%B #{@comment.created_at.day.ordinalize}, %Y at %-I:%M:%S%P") | ||
22 | %p= link_to "Go to the admin panel", pending_admin_comments_url | ||