Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 432 Bytes
<% @recent_comments.each do |comment| %>
<div class="media">
<div class="gravatar">
<%= image_tag comment.user.avatar_url(42) %>
</div>
<div class="media-body">
<small>
<%= link_to comment.user.name, user_path(comment.user) %>
on <%= link_to comment.post.title, topic_post_url(comment.post.topic, comment.post) %>
</small><br>
<%= comment.body %>
</div>
</div>
<% end %>