<% if get_avatar?(course)%> <%= image_tag(url_to_avatar(course), :class => "avatar2") %> <% else %> <%= image_tag('../images/avatars/course/course.jpg', :class => "avatar2") %> <% end %>

<%= content_tag('span',"#{l(:label_bid_show_course_name)}:", :class => "course-font")%> <%= content_tag('span', link_to("#{@course.name}", course_path(@course), :class => "info"))%>

<%= content_tag('span', "#{l(:label_institution_name)}:", :class => "course-font")%> <% @admin = @course.course_infos%> <%if @admin&&@admin.first&&@admin.first.user&&@admin.first.user.user_extensions%> <% unless @course.teacher.user_extensions.school.nil? %> <%= link_to @course.teacher.user_extensions.school.try(:name), school_course_list_path(@course.teacher.user_extensions.school) %> <% end %> <% end %>

<%= content_tag('div', "#{l(:field_teacher_name)}:", :class => "info course-font teacher") %> <% if @admin.size > 0 %> <%= content_tag('a', @admin.collect{|u| link_to(u.user.lastname+u.user.firstname, user_path(u.user_id))}.join(", ").html_safe) %> <% end %>

<%= content_tag('span', link_to("#{@course.homeworks.count}", homework_course_path(@course)), :class => "info") %> <%= content_tag('span', l(:label_x_task, :count => @course.homeworks.count)) %>

<% files_count = @course.attachments.count %> <%= content_tag('span', link_to(files_count, course_files_path(@course)), :class => "info") %> <%= content_tag('span', l(:label_x_data,:count => files_count)) %>

<%= content_tag('span', "#{garble @course.members.count}", :class => "info") %> <%= content_tag('span', l(:label_x_member, :count => @course.members.count)) %>

<%= content_tag('span', link_to("#{@course_activity_count[@course.id]}", course_path(@course)), :class => "info") %> <%= content_tag('span', l(:label_x_activity, :count => @course_activity_count[@course.id])) %>

<% if(course_endTime_timeout? @course) %> 课程学期已结束 <% else %> <%= join_in_course_for_list(@course, User.current,['regular'])%> <% end -%>
<%= content_tag "span","#{l(:label_duration_time)}:", :class => "course-font"%> <%= get_course_term @course %>
<%= content_tag "span", "#{l(:label_course_brief_introduction)}:", :class => "course-font" %> <%# desc = course.short_description.nil? ? "" : course.short_description%> <%= content_tag "div", course.short_description, :class => "brief_introduction", :title => course.short_description %>
<%= image_tag( "/images/sidebar/tags.png") %> <%= render :partial => 'tags/tag_name', :locals => {:obj => @course,:object_flag => "9",:non_list_all => true }%>