% project_file_num = Attachment.where(:container_type => "Project", :container_id => @project.id).count %>
<% project_issue_count = @project.issues.count %>
<% project_acts = ForgeActivity.where("project_id = ?", @project.id).count %>
<% raodmaps = Version.where("project_id = ?", @project.id).count %>
<% project_score = @project.project_score %>
<%# 更新访问数,刷新的时候更新访问次数 %>
<% update_visiti_count @project %>
<% unless @project.is_public? %><% end %>
<%=link_to "#{@project.owner.try(:show_name)}/".html_safe, user_path(@project.owner), :class => "pro_new_username" %>
<%=link_to @project.name, project_path(@project), :class => "pro_new_username break_word" %>
<%= render :partial => "projects/applied_status" %>
<% unless @project.forked_from_project_id.nil? %>
forked from <%=link_to "#{get_fork_from_project(@project.forked_from_project_id).owner.try(:show_name)}/".html_safe, user_path(get_fork_from_project(@project.forked_from_project_id).owner), :class => "pro_new_username_fork fl", :target => "_blank" %>
<%=link_to get_fork_from_project(@project.forked_from_project_id).name, project_path(get_fork_from_project(@project.forked_from_project_id)), :class => "pro_new_username_fork fl", :target => "_blank" %>
<% end %>
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
<% end %>
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
<% end %>
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
<% end %>
<% unless @project.gpid.nil? %>
<% end %>
<% unless @project.enabled_modules.where("name = 'calendar'").empty? %>
<% end %>
<% unless @project.enabled_modules.where("name = 'gantt'").empty? %>
<% end %>
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
<% end %>