<% 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" %>
<% 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 %>