This commit is contained in:
albert
2011-05-29 03:47:06 -04:00
parent 969185ad24
commit 9e287726e3
18 changed files with 237 additions and 137 deletions

View File

@@ -4,7 +4,11 @@
<% end %>
<div class="list-of-comments">
<%= render :partial => "comments/partials/show/comment", :collection => comments %>
<% if comments.empty? %>
<p>There are no comments.</p>
<% else %>
<%= render :partial => "comments/partials/show/comment", :collection => comments %>
<% end %>
</div>
<div class="clearfix"></div>

View File

@@ -1,6 +1,6 @@
<article data-comment-id="<%= comment.id %>">
<div class="author">
<h4><%= link_to comment.creator_name, user_path(comment.creator_id) %></h4>
<h1><%= link_to comment.creator_name, user_path(comment.creator_id) %></h1>
<p>
<%= time_ago_in_words(comment.created_at) %> ago
</p>