enable mention for comments #2466
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div class="comment-preview dtext dtext-preview">
|
||||
</div>
|
||||
|
||||
<%= form_tag(comments_path, :class => "simple_form") do %>
|
||||
<%= form_tag(comments_path, :class => "simple_form comment-form") do %>
|
||||
<%= hidden_field "comment", "post_id", :value => post.id %>
|
||||
<%= dtext_field "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
|
||||
<%= submit_tag "Post", :data => { :disable_with => "Submitting..." } %>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<% if CurrentUser.is_moderator? || !comment.is_deleted? %>
|
||||
<a name="comment-<%= comment.id %>"></a>
|
||||
<article class="comment" data-post-id="<%= comment.post_id %>" data-comment-id="<%= comment.id %>" data-score="<%= comment.score %>" data-creator="<%= comment.creator.name %>">
|
||||
<div class="author">
|
||||
<h1>
|
||||
|
||||
Reference in New Issue
Block a user