<% project_file_num = Attachment.where(:container_type => "Project", :container_id => @project.id).count %> <% project_issue_count =Issue.where(:project_id => @project.id).count%> <% acts_count = ForgeActivity.where("project_id = ?", @project.id).count %> <% 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 %> <% if allow_pull_request(@project) > 0 && allow_show_pull_request(@project) > 0 %> <% end %> <%# --版本库被设置成私有、module中设置不显示、没有创建版本库 三种情况不显示-- %> <% if visible_repository?(@project) %> <% end %>