<% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %> <% teacher_num = searchTeacherAndAssistant(@course).count %> <% student_num = studentCount(@course) %> <% course_file_num = visable_attachemnts_incourse(@course).count%>
<%= @course.is_public == 0 ? "私有课程" : "公开课程" %> <% if is_excellent_course(@course) %> 精品课程 <% end %>
ID:<%= @course.id%>
<%= @course.name %> <%# if @course.is_public == 0%> <%# end %> <%if User.current && @course.tea_id == User.current.id && (@course.outline == 0 || BlogComment.where(:id=>@course.outline).count == 0) %> <% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%> <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course) && @course.outline != 0%> <% elsif User.current && @course.tea_id != User.current.id && @course.is_public? && @course.outline != 0%> <%else%> <%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 %>