Skip to content

Commit

Permalink
fix: mistakenly deleted templates
Browse files Browse the repository at this point in the history
  • Loading branch information
qiao committed Sep 21, 2011
1 parent 5ea81b5 commit 7c32f35
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/views/posts/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<% div_for @post do %>
<%= render @post %>

<div class="comments">
<%= render :partial => 'comments/comments',
:locals => { :comments => @post.comments,
:commentable_id => @post.id } %>
<%= render :partial => 'comments/form', :locals => { :commentable => @post } %>
</div>
<% end %>

9 changes: 9 additions & 0 deletions app/views/posts/show_by_tag.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<% for post in @posts %>
<%= div_for post do %>
<%= render post %>
<%= render :partial => 'comments/hidden_comments', :locals => { :post => post } %>
<% end %>
<% end %>
<%= will_paginate @posts %>

0 comments on commit 7c32f35

Please sign in to comment.