<%- if comment.author -%>
<%= link_to content_tag( 'span', comment.author.name() ), comment.author.url,
:class => 'comment-picture',
:style => 'background-image:url(%s)' % profile_icon(comment.author, :icon)
%>
<%- else -%>
<%# unauthenticated user: display gravatar icon %>
<%= content_tag 'span', ' ',
:class => 'comment-picture',
:style => 'background-image:url(%s)' % gravatar_profile_image_url( comment.email, :size => 20 )
%>
<%- end %>
<%= link_to(comment.title, comment.url) %>
<%= _('by %{author} on "%{article}"') % {
:comment => link_to(comment.title, comment.url),
:article => link_to(comment.article.title, comment.article.url),
:author => comment.author_name } %>