<a href="#" target="_blank">
  <div class="con-r-img fl">
    <%= link_to image_tag(url_to_avatar(activity.creator),:width => "40", :height => "40"), user_path(activity.creator) %>
    <span class="con-name"><%= activity.try(:creator).try(:realname).nil? ? activity.try(:creator).try(:login) : activity.try(:creator).try(:realname) %></span></div>
  <p class="fr"><%= activity.content.html_safe %></p>
</a>