<%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','syllabus','css/moduel', 'css/user', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_heads %> <%= javascript_include_tag "bootstrap","avatars","new_user",'attachments','prettify'%> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%>
<% 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 %>
<%= render :partial => 'layouts/user_watch_btn', :locals => {:target => @user} %>
<% if is_current_user %> <% if hidden_unproject_infos && user_course_count > 0 %>

<%= 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" %>
  • <% if user_manage_homework_count > 0 %>
  • <%= link_to user_manage_homework_count > 0 ? "我发布的作业#{user_manage_homework_count}".html_safe : "我发布的作业", user_manage_homeworks_user_path(@user), :target => "_blank" %>
  • <% end %> <% if user_receive_homework_count > 0 %>
  • <%= link_to "我收到的作业#{user_receive_homework_count}".html_safe, user_receive_homeworks_user_path(@user), :target => "_blank" %>
  • <% end %>
  • <%= 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 %> <% if user_project_count > 0%>

<%= 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" %>
  • <% if issues_author_is_self_count > 0 %>
  • <%= 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" %>
  • <% end %> <% if issues_assigned_is_self_count > 0 %>
  • <%= 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" %>
  • <% end %>
<% end %> <% if hidden_unproject_infos && user_contest_count > 0 %>

<%= 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 && user_course_count > 0 %>
  • <%= 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 %> <% if user_project_count > 0 %>
  • <%= link_to user_project_count > 0 ? "项目#{user_project_count}".html_safe : "项目", user_project_community_path(@user), :id => 'user_project_list', :class => "fl", :target => "_blank" %>
  • <% end %> <% if hidden_unproject_infos && user_contest_count > 0 %>
  • <%= 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月)
<%= yield %>
<% if hidden_unproject_infos %> <%= render :partial => 'layouts/new_feedback' %> <% end %>
<%= render :partial => 'layouts/footer' %>