Files
grecia/app/views/comments/_comment.html.erb
Juanjo Bazán ae8068f5fd fix conflict
2015-08-05 14:46:18 +02:00

25 lines
724 B
Plaintext

<div class="row">
<div id="comment-<%= comment.id %>" class="small-12 column comment">
<%= image_tag('user_default_2.jpg', class: 'user-photo left', size: '32x32') %>
<div class="comment-body">
<span class="comment-info">
<%= comment.user.name %>&nbsp;&bullet;&nbsp;<%= time_ago_in_words(comment.created_at) %>
</span>
<p><%= comment.body %></p>
<span id="<%= dom_id(comment) %>_votes">
<%= render 'comments/votes', comment: comment %>
</span>
<% if user_signed_in? %>
<p class="reply"><%= render 'comments/form', {parent: comment, toggeable: true} %></p>
<% end %>
</div>
<div class="comment-children">
<%= render comment.children %>
</div>
</div>
</div>