<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 %>
    <a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
  <% end %>
</div>
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
<div class="subNav">
  <%= link_to l(:label_issue_tracking), project_issues_path(@project), :class => "f14 c_blue02" %>
  <% if @project.project_score.issue_num > 0 %>
  <a class="subnav_num">(<%= @project.project_score.issue_num %>)</a>
  <% end %>
  <% if User.current.member_of?(@project) %>
    <%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :class => "subnav_green" %>
  <% end %>
</div>
<% end %>
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
  <div class="subNav">
    <%= link_to l(:project_module_boards), project_boards_path(@project), :class => "f14 c_blue02" %>
    <% unless @project.project_score.board_num == 0 %>
      <a class="subnav_num">(<%= @project.project_score.board_num %>)</a>
    <% end %>
    <% if User.current.member_of?(@project) %>
      <%= link_to "+"+l(:project_module_boards_post),  project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
    <% end %>
  </div>
<% end%>
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
  <div class="subNav">
    <%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
    <% unless @project.project_score.attach_num == 0 %>
        <%= link_to "(#{@project.project_score.attach_num})", project_files_path(@project), :class => "subnav_num c_orange",:id=>'project_files_count_nav' %>
    <% end %>
    <% if User.current.member_of?(@project) %>
      <%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
    <% end %>
  </div>
<% end%>
