<% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %> <% teacher_num = TeacherAndAssistantCount(@course) %> <% student_num = studentCount(@course) %> <% course_file_num = visable_attachemnts_incourse(@course).count %>
<% if @course.syllabus%> <%= @course.syllabus.title + " •" %> <% end %>  <%= @course.name %><%=@course.is_public == 0 ? '(私有)' : '(公开)' %> <% if is_excellent_course(@course) %> 精品课程 <% end %>
邀请码: <%=@course.generate_invite_code %> <% unless is_teacher %>
<%= join_in_course_header(@course, User.current) %>
<% end %>
<%= l(:label_account_identity_teacher)%>(<%= course_teacher_link teacher_num %>) <%= l(:label_account_identity_student)%>(<%= course_student_link student_num %>) <%= l(:project_module_attachments)%>(<%= link_to course_file_num, course_files_path(@course), :class => 'info_foot_num c_blue',:id=>'courses_files_count_info' %>)
<% if is_teacher %>
<% end %>