refactoring views

This commit is contained in:
albert
2011-08-16 18:47:01 -04:00
parent c8067a4691
commit 24bf21540a
46 changed files with 244 additions and 298 deletions

View File

@@ -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>