fixes #2191
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
<%= f.input :topic_id, :as => :hidden %>
|
||||
<%= dtext_field "forum_post", "body" %>
|
||||
|
||||
<%= f.input :receive_email_notifications, :as => :boolean %>
|
||||
|
||||
<%= f.button :submit, "Submit" %>
|
||||
<%= dtext_preview_button "forum_post", "body" %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<%= stylesheet_link_tag "application", :media => "screen" %>
|
||||
</head>
|
||||
<body>
|
||||
<p><%= h @dmail.from.name %> said:</p>
|
||||
|
||||
|
||||
21
app/views/user_mailer/forum_notice.html.erb
Normal file
21
app/views/user_mailer/forum_notice.html.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<%= stylesheet_link_tag "application", :media => "screen" %>
|
||||
</head>
|
||||
<body>
|
||||
<p><%= @forum_topic.title %> was updated:</p>
|
||||
|
||||
<% @forum_posts.each do |forum_post| %>
|
||||
<div class="prose">
|
||||
<p class="author">
|
||||
<%= forum_post.creator_name %> said:
|
||||
</p>
|
||||
<%= format_text(forum_post.body) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p><%= link_to "View topic", forum_topic_path(@forum_topic, :page => @forum_topic.last_page, :host => Danbooru.config.hostname, :only_path => false) %></p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user