<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_path(user), :alt => "用户头像", :target => '_blank' %> <%#= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
<% if (user.user_extensions && (user.user_extensions.identity != 2) ) %> <% end %>

<% if user.user_extensions && user.user_extensions.identity %> <%= get_user_roll(user) %> <% end %>

<%= link_to User.watched_by(user.id).count, {:controller=>"users", :action=>"user_watchlist",:id=>user.id}, :class => 'homepageImageNumber',:target => "_blank" %>
<%= link_to '关注',{:controller=>"users", :action=>"user_watchlist",:id=>user.id},:target => "_blank" %>
<%= link_to user.watcher_users.count,{:controller=>"users", :action=>"user_fanslist",:id=>user.id}, :class => "homepageImageNumber fans_count_#{user.id}",:target => "_blank" %>
<%= link_to '粉丝', {:controller=>"users", :action=>"user_fanslist",:id=>user.id},:target => "_blank" %>
<%= link_to user.blog.blog_comments.where("#{BlogComment.table_name}.parent_id is null").count, user_blogs_path(user), :class => 'homepageImageNumber',:target => "_blank" %>
<%= link_to '博客', user_blogs_path(user),:target => "_blank" %>
<% if User.current != user %>
<%= render :partial => 'users/watch_btn_for_picture', :locals => {:user => user} %>
<%= link_to "留言", feedback_path(user), :class => 'greyBtn fr', :target => "_blank" %> <%= link_to "私信", feedback_path(user), :class => 'greyBtn fr', :style => 'margin-right:20px;', :target => "_blank" %> <% end %>