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

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

<%= content_tag('span', "#{l(:label_institution_name)}:", :class => "course-font")%> <% @admin = @project.project_infos%> <%if @admin&&@admin.first&&@admin.first.user&&@admin.first.user.user_extensions%> <%# unless @project.course_extra.school.nil? %> <%= @project.course_extra.teacher.user_extensions.school.try(:name) %> <%# 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("#{@project.homeworks.count}", homework_project_path(@project)), :class => "info") %> <%= content_tag('span', l(:label_x_task, :count => @project.homeworks.count)) %>

<% files_count = @project.attachments.count %> <% @project.versions.each do |version| %> <% files_count += version.attachments.count %> <% end %> <%= content_tag('span', link_to(files_count, project_files_path(@project)), :class => "info") %> <%= content_tag('span', l(:label_x_data,:count => files_count)) %>

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

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

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