|
|
|
@ -116,7 +116,7 @@
|
|
|
|
|
:action => 'show_projects_score',
|
|
|
|
|
:remote => true,
|
|
|
|
|
:id => @project.id },
|
|
|
|
|
:style => "color: #EC6300;")%>
|
|
|
|
|
:style => "color: #EC6300;") %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pr_info_foot">
|
|
|
|
@ -137,33 +137,48 @@
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
|
|
|
|
|
</div>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :style => "color:#3CA5C6" %><span class="subnav_num">(<%= @project.issues.count %>)</span>
|
|
|
|
|
<span>
|
|
|
|
|
<% if User.current.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+发布问题", new_project_issue_path(@project) , :style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :style => "color:#3CA5C6" %><span class="subnav_num">(<%= @project.issues.count %>)</span>
|
|
|
|
|
<span>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:project_module_boards), project_boards_path(@project), :style => "color:#3CA5C6" %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.boards.first.topics.count %>)</span>
|
|
|
|
|
<% if User.current.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_course_file), project_files_path(@project), :style => "color:#3CA5C6" %><span class="subnav_num">(<%= @project.attachments.count %>)</span>
|
|
|
|
|
<% if User.current.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+"+l(:label_upload_files), new_project_file_path(@project),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'repository'").empty? %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:project_module_repository), {:controller => 'repositories', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.repositories.count %>)</span>
|
|
|
|
|
<% if User.current.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+"+l(:project_module_create_repository), new_project_repository_path(@project),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="subNav subNav_jiantou"><%= l(:label_more) %></div>
|
|
|
|
|
<ul class="navContent" style="padding-left: 0px">
|
|
|
|
|