<%= image_tag(url_to_avatar(@user), :id=>'nh_user_tx',:style=>"width:214px;height:214px;overflow:hidden",:alt=>"头像") %>
<% if @center_flag %>
<% end %>
<%=link_to @user.name, user_path(@user),:class=>"fl c_dark fb f14" %>
<% if (@user.user_extensions && (@user.user_extensions.identity != 2) ) %>
<% end %>
<%= render :partial => 'layouts/user_watch_btn', :locals => {:target => @user} %>
<%=l(:label_user_watcher)%>(<%= link_to User.watched_by(@user.id).count.to_s, {:controller=>"users", :action=>"user_watchlist",:id=>@user.id},:class=>"c_blue",:nh_name=>"watcher_count" %>)
|
<%=l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)%>(<%= link_to @user.watcher_users.count.to_s, {:controller=>"users", :action=>"user_fanslist",:id=>@user.id},:class=>"c_blue",:nh_name=>"fans_count"%>)
| 积分(<%= link_to(format("%.2f" ,get_option_number(@user,1).total_score ).to_i,
{:controller => 'users', :action => 'show_new_score', :remote => true, :id => @user.id }, :class => 'c_blue',:id => 'user_score') %>)
<% if (@user.user_extensions) %>
<%= @user.user_extensions.brief_introduction %>
<% end %>
- 最近登录 : <% if @user.user_extensions!=nil && @user.user_extensions.identity == 2 %>
- <%= l(:label_company_name) %> : <% elsif !@user.firstname.empty? || !@user.lastname.empty? %> <% if @user.user_extensions.identity == 0 %>
- 真实姓名 : <% end %> <% end %> <% unless @user.user_extensions.nil? %> <% if @user.user_extensions.identity == 0 %>
- 职称 : <% end %> <% if @user.user_extensions && @user.user_extensions.location && !@user.user_extensions.location.empty?%>
- 地区 : <% end %> <% if (@user.user_extensions.identity == 0 || @user.user_extensions.identity == 1) && !@user.user_extensions.school.nil? %>
- 工作单位 : <% elsif @user.user_extensions.identity == 3 && !@user.user_extensions.occupation.nil? && !@user.user_extensions.occupation.empty? %>
- 工作单位 : <% elsif @user.user_extensions.identity == 2 %>
- 工作单位 : <% end %> <% if (!@user.user_extensions.description.nil? && !@user.user_extensions.description.empty?) %>
- 个人简介 : <% end %> <% end %>
- <%= format_date(@user.last_login_on) %> <% if @user.user_extensions.identity == 0 %> <% end %> <% unless @user.user_extensions.nil? %> <% if @user.user_extensions.identity == 0 %>
- <%= get_technical_title @user %> <% end %> <% if @user.user_extensions && @user.user_extensions.location && !@user.user_extensions.location.empty?%>
- <%= @user.user_extensions.location %> <%= @user.user_extensions.location_city %> <% end %> <% if (@user.user_extensions.identity == 0 || @user.user_extensions.identity == 1) && !@user.user_extensions.school.nil? %> <% elsif @user.user_extensions.identity == 3 && !@user.user_extensions.occupation.nil? && !@user.user_extensions.occupation.empty? %> <% elsif @user.user_extensions.identity == 2 %> <% end %> <% if (!@user.user_extensions.description.nil? && !@user.user_extensions.description.empty?) %>
- <%= @user.user_extensions.description %> <% end %> <% end %>
-
<% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
<% if(get_create_course_count(@user)) == 0 %>
- 创建课程 : <% end %> <% if(get_homework_commons_count(@user)) == 0 %>
- 发布作业 : <% end %> <% end %> <% if (get_join_course_count(@user) != 0) %>
- 加入课程 : <% end %> <% if @user.user_extensions.identity == 0 %>
- 参加匿评 : <% end %> <% if (get_projectandcourse_attachment_count(@user) != 0) %>
- 发布资源 : <% end %> <% if (get_create_project_count(@user) != 0) %>
- 创建项目 : <% end %> <% if (get_join_project_count(@user) != 0) %>
- 加入项目 : <% end %> <% if (get_create_issue_count(@user) != 0) %>
- 发布缺陷 : <% end %> <% if (get_resolve_issue_count(@user) != 0) %>
- 解决缺陷 : <% end %>
-
<% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
<% if(get_create_course_count(@user)) == 0 %>
- <%= get_create_course_count(@user) %> <% end %> <% if(get_homework_commons_count(@user)) == 0 %>
- <%= get_homework_commons_count(@user) %> <% end %> <% end %> <% if (get_join_course_count(@user) != 0) %>
- <%= get_join_course_count(@user) %> <% end %> <% if @user.user_extensions.identity == 0 %>
- <%= get_anonymous_evaluation_count(@user) %> <% end %> <% if (get_projectandcourse_attachment_count(@user) != 0) %>
- <%= get_projectandcourse_attachment_count(@user) %> <% end %> <% if (get_create_project_count(@user) != 0) %>
- <%= get_create_project_count(@user) %> <% end %> <% if (get_join_project_count(@user) != 0) %>
- <%= get_join_project_count(@user) %> <% end %> <% if (get_create_issue_count(@user) != 0) %>
- <%= get_create_issue_count(@user) %> <% end %> <% if (get_resolve_issue_count(@user) != 0) %>
- <%= get_resolve_issue_count(@user) %> <% end %>
访客
更多
<% for visitor in visitor_list %>
<%= link_to image_tag(url_to_avatar(visitor.user), :style => "width:38px;height:38px;"), user_path(visitor.user), :class => "pic_members", :title => "#{visitor.user.name}" %>
<% end %>