work
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user