diff options
Diffstat (limited to 'app/views/comment_mailer/new_comment_email.html.haml')
-rw-r--r-- | app/views/comment_mailer/new_comment_email.html.haml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/comment_mailer/new_comment_email.html.haml b/app/views/comment_mailer/new_comment_email.html.haml new file mode 100644 index 0000000..bd9e91c --- /dev/null +++ b/app/views/comment_mailer/new_comment_email.html.haml | |||
@@ -0,0 +1,22 @@ | |||
1 | %h1 Four Island | ||
2 | %p | ||
3 | A comment has been posted on | ||
4 | = link_to @comment.blog.title, @comment.blog | ||
5 | by the following user: | ||
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.published_at.strftime("%B #{@comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") | ||
22 | %p= link_to "See the comment on the web", blog_url(@comment.blog, anchor: "comment-#{@comment.id}") | ||