|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
|
|
|
|
|
<% cache @project do %>
|
|
|
|
|
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
|
|
|
|
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
|
|
|
@ -28,7 +29,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
|
|
|
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
|
|
|
|
|
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
|
|
|
|
<% unless attaments_num == 0 %>
|
|
|
|
|
<a class="subnav_num">(<%= attaments_num %>)</a>
|
|
|
|
@ -37,6 +40,7 @@
|
|
|
|
|
<%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# --版本库被设置成私有、module中设置不显示、没有创建版本库 三种情况不显示-- %>
|
|
|
|
|
<% if visible_repository?(@project) %>
|
|
|
|
@ -50,3 +54,4 @@
|
|
|
|
|
<ul class="navContent" id="navContent">
|
|
|
|
|
<%= render 'projects/tools_expand' %>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %>
|