Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (15 sloc) 486 Bytes
<% @top_posts.each do |post| %>
<div class="media">
<div class="gravatar">
<%= image_tag post.user.avatar_url(42) %>
</div>
<div class="media-body">
<h4 class="media-heading">
<%= link_to post.title, topic_post_path(post.topic, post) %>
</h4>
<small>
<%= pluralize(post.points, 'point') %> | <%= pluralize(post.comments_count, 'comment') %> | <%= link_to post.topic.name, post.topic %>
</small>
</div>
</div>
<% end %>