about summary refs log tree commit diff stats
path: root/app/views/comment_mailer
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/comment_mailer')
-rw-r--r--app/views/comment_mailer/new_comment_email.html.haml21
-rw-r--r--app/views/comment_mailer/new_comment_email.text.erb17
-rw-r--r--app/views/comment_mailer/new_pending_comment_email.html.haml22
-rw-r--r--app/views/comment_mailer/new_pending_comment_email.text.erb19
-rw-r--r--app/views/comment_mailer/reply_comment_email.html.haml14
-rw-r--r--app/views/comment_mailer/reply_comment_email.text.erb19
6 files changed, 112 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..d16a9ca --- /dev/null +++ b/app/views/comment_mailer/new_comment_email.html.haml
@@ -0,0 +1,21 @@
1%p
2 A comment has been posted on
3 = link_to @comment.blog.title, @comment.blog
4 by the following user:
5%ul
6 %li
7 Name:
8 = @comment.username
9 %li
10 Email:
11 = @comment.email
12 - unless @comment.website.empty?
13 %li
14 Website:
15 = @comment.website
16%p Here is the comment:
17%blockquote= @comment.body
18%p
19 Posted:
20 = @comment.published_at.strftime("%B #{@comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P")
21%p= link_to "See the comment on the web", blog_url(@comment.blog, anchor: "comment-#{@comment.id}")
diff --git a/app/views/comment_mailer/new_comment_email.text.erb b/app/views/comment_mailer/new_comment_email.text.erb new file mode 100644 index 0000000..334d087 --- /dev/null +++ b/app/views/comment_mailer/new_comment_email.text.erb
@@ -0,0 +1,17 @@
1A comment has been posted on <%= @comment.blog.title %> by the following user:
2
3* Name: <%= @comment.username %>
4* Email: <%= @comment.email %>
5<% unless @comment.website.empty? %>* Website: <%= @comment.website %>
6<% end %>
7Here is the comment:
8
9---
10
11<%= @comment.body %>
12
13---
14
15Posted: <%= @comment.published_at.strftime("%B #{@comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") %>
16
17See the comment on the web: <%= blog_url(@comment.blog, anchor: "comment-#{@comment.id}") %>
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
diff --git a/app/views/comment_mailer/new_pending_comment_email.text.erb b/app/views/comment_mailer/new_pending_comment_email.text.erb new file mode 100644 index 0000000..787d6b8 --- /dev/null +++ b/app/views/comment_mailer/new_pending_comment_email.text.erb
@@ -0,0 +1,19 @@
1A comment has been posted on <%= @comment.blog.title %> that is pending moderation.
2
3The details of the user that posted it:
4
5* Name: <%= @comment.username %>
6* Email: <%= @comment.email %>
7<% unless @comment.website.empty? %>* Website: <%= @comment.website %>
8<% end %>
9Here is the comment:
10
11---
12
13<%= @comment.body %>
14
15---
16
17Posted: <%= @comment.created_at.strftime("%B #{@comment.created_at.day.ordinalize}, %Y at %-I:%M:%S%P") %>
18
19Go to the admin panel: <%= pending_admin_comments_url %>
diff --git a/app/views/comment_mailer/reply_comment_email.html.haml b/app/views/comment_mailer/reply_comment_email.html.haml new file mode 100644 index 0000000..22009ee --- /dev/null +++ b/app/views/comment_mailer/reply_comment_email.html.haml
@@ -0,0 +1,14 @@
1%p
2 A reply has been posted to your comment on
3 = succeed "." do
4 = link_to @comment.blog.title, @comment.blog
5 The original comment:
6%blockquote= @comment.reply_to.body
7%p
8 = @comment.username
9 left the following response:
10%blockquote= @comment.body
11%p
12 Posted:
13 = @comment.published_at.strftime("%B #{@comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P")
14%p= link_to "See the comment on the web", blog_url(@comment.blog, anchor: "comment-#{@comment.id}")
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 @@
1A reply has been posted to your comment on <%= @comment.blog.title %>. The original comment:
2
3---
4
5<%= @comment.reply_to.body %>
6
7---
8
9<%= @comment.username %> posted the following response:
10
11---
12
13<%= @comment.body %>
14
15---
16
17Posted: <%= @comment.published_at.strftime("%B #{@comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") %>
18
19See the comment on the web: <%= blog_url(@comment.blog, anchor: "comment-#{@comment.id}") %>