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

<%= textilizable(project.short_description.strip, :project => project) %>

<%= link_to @project.watcher_users.count, project_watcherlist_path(project)%> <%= content_tag('span', l(:label_x_follow_people,:count =>@project.watcher_users.count)) %>
<%= link_to "#{@project.members.count}", project_member_path(@project)%> <%= content_tag('span', l(:label_x_current_contributors, :count => @project.users.count)) %>
<%= content_tag('span', "#{(@project.repository.nil? || @project.repository.changesets[0].nil?) ? '0' : distance_of_time_in_words(Time.now, @project.repository.changesets[0].committed_on)}", :class => "info") %> <%= content_tag('span', l(:label_since_last_commits)) %>
<% #find_project_repository @project %> <%= content_tag('span', "#{@project.repository.nil? || @project.project_status.nil? ? '0' : @project.project_status.changesets_count }", :class => "info") %> <%= content_tag('span', l(:label_commit_on)) %>

<% end %> <% if(@project.project_type==1)%>

<%= textilizable(project.short_description, :project => project) %>

<%= 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)) %>

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

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

<% end %>
<% if(@project.project_type==1)%> <%= content_tag('span', "#{l(:field_tea_name)}: ") %> <% else %> <%= content_tag('span', "#{l(:default_role_manager)}: ") %> <% end %> <% @admin = @project.project_infos%> <% if @admin.size > Setting.show_tags_length.to_i then %> <% i = 0 %> <% until i>Setting.show_tags_length.to_i do %> <%= link_to @admin[i].user.name, user_path(@admin[i].user_id) %> <% i += 1 %> <% end %> <%= link_to l(:label_more_tags), member_project_path(@project) %> <% else %> <%= content_tag('a', @admin.collect{|u| link_to(u.user.name, user_path(u.user_id))}.join(", ").html_safe) %> <% end %> <%# if @admin.size > 0 %> <%#= content_tag('a', @admin.collect{|u| link_to(u.user.name, user_path(u.user_id))}.join(", ").html_safe) %> <%# end %> <% if(@project.project_type==1)%>    <%= l(:label_course_college) %>: <%if @admin&&@admin.first&&@admin.first.user&&@admin.first.user.user_extensions%> <%= @admin.first.user.user_extensions.occupation %> <% end %> <% end %>
<%= content_tag('span', "#{l(:label_create_time)}: ") %><%= content_tag('span', format_time(@project.created_on)) %>
<% if @project.project_type !=1 %> <%= l(:label_project_grade)%>: <%= link_to(format("%.2f" , red_project_scores(@project) ).to_i, {:controller => 'projects', :action => 'show_projects_score', :remote => true, :id => @project.id}, :style=>"color: #EC6300;") %> <% end %>
<%= image_tag( "/images/sidebar/tags.png") %> <%= render :partial => 'tags/tag_name', :locals => {:obj => @project,:object_flag => "2",:non_list_all => true }%>