<% @nav_dispaly_home_path_label = 1 @nav_dispaly_main_course_label = 1 @nav_dispaly_main_project_label = 1 @nav_dispaly_main_contest_label = 1 %> <% @nav_dispaly_forum_label = 1%> <% @nav_dispaly_user_label = show_item_on_navbar(params) %> <% @center_flag = (User.current == @user) %> <%= h html_title %> <%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'public_new', 'leftside_new','users', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_heads %> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%>
<%= render :partial => 'layouts/base_header_new'%>
<%=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 %>
  • <%= @user.show_name %>
  • <% 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? %>
  • <%= @user.user_extensions.school.name %>
  • <% elsif @user.user_extensions.identity == 3 && !@user.user_extensions.occupation.nil? && !@user.user_extensions.occupation.empty? %>
  • <%= @user.user_extensions.occupation %>
  • <% elsif @user.user_extensions.identity == 2 %>
  • <%= @user.show_name %>
  • <% end %> <% if (!@user.user_extensions.description.nil? && !@user.user_extensions.description.empty?) %>
  • <%= @user.user_extensions.description %>
  • <% end %> <% end %>
<% if @center_flag %> <% 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 %>
<%= render :partial => 'layouts/user_watch_list', :locals => {:user => @user} %> <%= render :partial => 'layouts/user_fans_list', :locals => {:user => @user} %> <% visitor_count,visitor_list = get_visitor_users(@user) %> <% if(User.current.admin?) %>

访客

更多
<% 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 %>
<% end %>
<%= yield %>
<%= render :partial => 'layouts/new_footer'%>
<%= render :partial => 'layouts/new_feedback' %> <%= javascript_include_tag '/javascripts/avatars.js' %>