refactoring views
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="comments-for-post" data-post-id="<%= post.id %>">
|
||||
<% if show_header %>
|
||||
<%= render :partial => "comments/partials/index/header", :locals => {:post => post} %>
|
||||
<%= render "comments/partials/index/header", :post => post %>
|
||||
<% end %>
|
||||
|
||||
<div class="list-of-comments">
|
||||
@@ -15,6 +15,6 @@
|
||||
|
||||
<div class="new-comment">
|
||||
<p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
|
||||
<%= render :partial => "comments/partials/new/form", :locals => {:post => post} %>
|
||||
<%= render "comments/partials/new/form", :post => post %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user