<% if User.current.logged? && User.current == @user%>
<%= link_to image_tag(url_to_avatar(@user),width:"74", height: "74", :id => 'nh_source_tx'),
my_clear_user_avatar_temp_path, :class => "user_leftinfo_img", :remote => true %>
<%=link_to '', my_clear_user_avatar_temp_path, :class => 'homepageEditProfileIcon', :remote => true, :title => '点击编辑Logo' %>
<% else %>
<%=image_tag(url_to_avatar(@user),width:"74", height: "74", :id=>'nh_source_tx') %>
<% end %>
<% if (@user.user_extensions && (@user.user_extensions.identity != 2) ) %>
<% end %>
<%= link_to @user.show_name, user_path(@user), :class => "user_leftinfo_name" %>
<% if @user.user_extensions && @user.user_extensions.identity %>
<%= get_user_roll @user %>
<% end%>
<%= render :partial => 'layouts/user_brief_introduction', :locals => {:user => @user} %>
<%= render :partial => 'layouts/user_watch_btn', :locals => {:target => @user} %>
<% if is_current_user %>
<% if hidden_unproject_infos %>
<%= link_to "课程社区", user_course_community_path(User.current), :class => "fl" , :target => "_blank", :style => "color:#666" %>
<%# if hidden_unproject_infos %>
-
<%= link_to user_course_count > 0 ? "课程#{user_course_count}".html_safe : "课程",
user_course_community_path(User.current), :id => "user_course_list", :target => "_blank" %>
-
<%=link_to '我的作业', my_homeworks_user_path(@user), :target => "_blank", :class => "fl", :style => "color:#666" %>
-
<%= link_to "题库", user_homeworks_user_path(User.current), :target => "_blank", :class => "fl", :style => "color:#666" %>
-
<%= link_to "资源库", user_resource_user_path(User.current, :type => 1), :target => "_blank", :class => "fl", :style => "color:#666" %>
<%# end %>
<% end %>
<%= link_to "项目社区", user_project_community_path(User.current), :class => "fl", :target => "_blank", :style => "color:#666" %>
-
<%= link_to user_project_count > 0 ? "项目#{user_project_count}".html_safe : "项目",
user_project_community_path(User.current), :id => 'user_project_list', :target => "_blank" %>
-
<%= link_to issues_author_is_self_count > 0 ? "我发布的issue#{issues_author_is_self_count}".html_safe : "我发布的issue",
user_manage_issues_user_path(@user), :target => "_blank" %>
-
<%= link_to issues_assigned_is_self_count > 0 ? "我收到的issue#{issues_assigned_is_self_count}".html_safe : "我收到的issue",
user_receive_issues_user_path(@user), :target => "_blank" %>
<% if hidden_unproject_infos %>
<%= link_to "竞赛社区", user_contest_community_path(User.current), :class => "fl" , :target => "_blank"%>
-
<%= link_to user_contest_count > 0 ? "竞赛#{user_contest_count}".html_safe : "竞赛",
user_contest_community_path(User.current), :id => "user_contest_list", :target => "_blank" %>
<%# end %>
<% end %>
<% else %>
Ta在确实
<%= time_tag(@user.created_on).html_safe %>
<% if hidden_unproject_infos %>
-
<%= link_to user_course_count > 0 ? "课程#{user_course_count}".html_safe : "课程",
user_course_community_path(@user), :id => "user_course_list", :class => "fl", :target => "_blank" %>
<% end %>
-
<%= link_to user_project_count > 0 ? "项目#{user_project_count}".html_safe : "项目",
user_project_community_path(@user), :id => 'user_project_list', :class => "fl", :target => "_blank" %>
<% if hidden_unproject_infos %>
-
<%= link_to user_contest_count > 0 ? "竞赛#{user_contest_count}".html_safe : "竞赛",
user_contest_community_path(@user), :id => 'user_contest_list', :class => "fl", :target => "_blank" %>
<% end %>
<% end %>
-
<%= link_to "留言", feedback_path(@user, :host=> Setting.host_user)%>
<%# 更新访问数,刷新的时候更新访问次数 %>
<% update_visiti_count @user %>
访问计数 <%= @user.visits.to_i %> (自2016年5月)