<%= 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',: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?%> <%= image_tag(url_to_avatar(@user), width:"74", height: "74", :id=>'nh_user_tx')%> <% else %> <% end %> <% if (@user.user_extensions && (@user.user_extensions.identity != 2) ) %> <% end %>
<%= link_to "编辑个人资料", my_account_path(:tip => 1), :class => "user_editinfo"%>
<% if hidden_unproject_infos %>
  • 课程 <% courses = @user.courses.visible.where("is_delete =?", 0).select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS a").order("a desc").limit(10) %> <% all_count = @user.courses.visible.where("is_delete =?", 0).count%>
    <% if !courses.empty? %> <% end %>
  • <% if is_current_user %>
  • 新建课程
  • 新建班级
  • 加入班级
  • <% if @user == User.current %>
  • 我的作业
  • <% end %> <% end %>
<% end %>
  • 项目 <% all_count = @user.projects.visible.count%> <% projects = @user.projects.visible.select("projects.*, (SELECT MAX(updated_at) FROM `forge_activities` WHERE forge_activities.project_id = projects.id) AS a").order("a desc").limit(10)%>
    <% if !projects.empty? %> <% end %>
  • <% if is_current_user %>
  • 新建项目
  • 加入项目
  • <% end %>
访问计数 <%= @user.visits.to_i %> (自2016年5月)
<%= yield %>
<% if hidden_unproject_infos %> <%= render :partial => 'layouts/forbidden_new_feedback' %> <% end %>
<%= render :partial => 'layouts/footer_show' %>