add user.avatar with correct size

This commit is contained in:
jomo
2014-05-02 01:16:49 +02:00
parent 000a5e0f82
commit 8c73fcd479
11 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<% @posts.each do |p| %>
<div class="item-group with-avatar" id="post-<%= p.id %>">
<div class="header">
<%= link_to(image_tag(p.author.avatar_url(64), class: "avatar"), p.author, title: p.author.ign) %>
<%= link_to(p.author.avatar(64), p.author, title: p.author.ign) %>
<%= render partial: "users/username", locals: { user: p.author } %> <time><%= link_to p.created_at.strftime("%e. %b %Y, %H:%M"), p %></time>
<span class="comment-counter">
<%= link_to pluralize(p.comments.count, "Comment"), p %>