|
|
@ -126,7 +126,8 @@
|
|
|
|
<%= link_to "#{@project.watcher_users.count}", {:controller=>"projects", :action=>"watcherlist", :id => @project.id}, :style => "color:#3CA5C6;font-weight:bold" %></span>)
|
|
|
|
<%= link_to "#{@project.watcher_users.count}", {:controller=>"projects", :action=>"watcherlist", :id => @project.id}, :style => "color:#3CA5C6;font-weight:bold" %></span>)
|
|
|
|
<span>| </span>
|
|
|
|
<span>| </span>
|
|
|
|
<%= l(:project_module_attachments) %>(<span class="info_foot_num" >
|
|
|
|
<%= l(:project_module_attachments) %>(<span class="info_foot_num" >
|
|
|
|
<%= link_to "#{@project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count}", project_files_path(@project), :style => "color:#3CA5C6;font-weight:bold" %></span>)
|
|
|
|
<% 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), :style => "color:#3CA5C6;font-weight:bold" %></span>)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div><!--项目信息 end-->
|
|
|
|
</div><!--项目信息 end-->
|
|
|
@ -170,8 +171,8 @@
|
|
|
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
|
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
|
|
<div class="subNav">
|
|
|
|
<div class="subNav">
|
|
|
|
<%= link_to l(:label_course_file), project_files_path(@project), :style => "color:#3CA5C6" %>
|
|
|
|
<%= link_to l(:label_course_file), project_files_path(@project), :style => "color:#3CA5C6" %>
|
|
|
|
<% unless @project.attachments.count == 0 %>
|
|
|
|
<% unless attaments_num == 0 %>
|
|
|
|
<span class="subnav_num">(<%= @project.attachments.count %>)</span>
|
|
|
|
<span class="subnav_num">(<%= attaments_num %>)</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
<%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:16px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
<%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:16px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|