<%= image_tag(url_to_avatar(@project), :width => "60", :height => "60") %>
<%= l(:label_project_id)%><%= @project.id %>
<% text = @project.project_new_type == 1 ? l(:label_development_team) : (@project.project_new_type == 2 ? l(:label_research_group) : l(:label_friend_organization))%>
<%= render 'layouts/join_exit_project',{:text => text} %>
<%= l(:label_project_name) %><%= @project.name %>
<% if @project.is_public? %>
<%= l(:label_public)%>
<% else %>
<%= l(:label_private)%>
<% end %>
<% if @project.project_type == 0 %>
<%= l(:label_project_score)%> :
<%= link_to(format("%.2f" ,project_scores(@project) ).to_i, {:controller => 'projects',
:action => 'show_projects_score',
:remote => true,
:id => @project.id
}, :class => "c_orange f14" ) %>
<% end %>
<%= l(:label_member) %>(<%= link_to "#{@project.members.count}", project_member_path(@project), :class => 'info_foot_num c_blue' %>)
|
<%= l(:label_user_watcher) %>(<%= link_to "#{@project.watcher_users.count}", {:controller=>"projects", :action=>"watcherlist", :id => @project.id}, :class => 'info_foot_num c_blue' %>)
|
<%= l(:project_module_attachments) %>(
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
<%= link_to "#{attaments_num}", project_files_path(@project), :class => 'info_foot_num c_blue' %>)
<% if User.current.member_of?(@project) %>
<%= l(:label_invite)%>
<% end %>
<% if @project.project_new_type == 1 || @project.project_new_type.nil? %>
<%= render :partial => 'layouts/base_development_group', :locals => {:project => @project}%>
<% elsif @project.project_new_type == 2 %>
<%= render :partial => 'layouts/base_research_team', :locals => {:project => @project}%>
<% else %>
<%= render :partial => 'layouts/base_friend_group', :locals => {:project => @project}%>
<% end %>
<%= l(:label_project_overview)%>:
<%= textilizable(@project.description) if @project.description && !@project.description.blank? %>
<%= l(:label_tag)%>:
<%= render_flash_messages %>
<%= yield %>
<%= call_hook :view_layouts_base_content %>