comments: add standalone new comment form.

Add standalone /comments/new page to allow commenting if javascript is
disabled.
This commit is contained in:
evazion
2018-09-29 14:24:17 -05:00
parent 9ac59aeadd
commit dfb7cf6994
3 changed files with 15 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
<% if CurrentUser.is_member? %>
<div class="new-comment">
<p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
<p><%= link_to "Post comment", new_comment_path(comment: { post_id: post.id }), :class => "expand-comment-response" %></p>
<%= render "comments/form", comment: post.comments.new, hidden: true %>
</div>
<% end %>