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

View File

@@ -1,6 +1,6 @@
<div class="item-group with-avatar comment" id="comment-<%= c.id %>">
<div class="header <%= "op" if c.author.is?(c.blogpost.author) %>">
<%= link_to(image_tag(c.author.avatar_url(64), class: "avatar"), c.author, title: c.author.ign) %>
<%= link_to(c.author.avatar(64), c.author, title: c.author.ign) %>
<%= render partial: "users/username", locals: { user: c.author } %>
<time><%= link_to c.created_at.strftime("%e. %b %Y, %H:%M"), "#comment-#{c.id}" %></time>