2015-03-06 14:55:21 +08:00
|
|
|
<li>
|
|
|
|
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
|
|
|
|
<%= link_to l(:label_settings), settings_project_path(@project) %>
|
2014-09-29 14:29:57 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</li>
|
2015-03-07 15:32:50 +08:00
|
|
|
<li>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% unless @project.enabled_modules.where("name = 'news'").empty? %>
|
2015-03-12 09:47:42 +08:00
|
|
|
<%= link_to l(:project_module_news), project_news_index_path(@project) %>
|
|
|
|
<% end %>
|
2015-03-07 15:32:50 +08:00
|
|
|
</li>
|
2015-03-06 14:55:21 +08:00
|
|
|
<li>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% unless @project.enabled_modules.where("name = 'wiki'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<%= link_to l(:project_module_wiki), project_wiki_path(@project) %>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% unless @project.enabled_modules.where("name = 'code_review'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<%= link_to l(:project_module_code_review), {controller: 'code_review', action: 'index', id: @project.id} %>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% unless @project.enabled_modules.where("name = 'calendar'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<%= link_to l(:project_module_calendar),project_calendar_path(@project) %>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% unless @project.enabled_modules.where("name = 'gantt'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<%= link_to l(:project_module_gantt) ,project_gantt_path(@project) %>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% unless @project.enabled_modules.where("name = 'documents'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<%= link_to l(:project_module_documents), project_documents_path(@project) %>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</li>
|
2015-03-12 09:03:25 +08:00
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= link_to l(:label_roadmap) ,project_roadmap_path(@project) %>
|
|
|
|
</li>
|
2015-03-06 14:55:21 +08:00
|
|
|
<li>
|
|
|
|
<%= link_to l(:label_project_tool_response) ,project_feedback_path(@project)%>
|
|
|
|
</li>
|
|
|
|
<li>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% unless @project.enabled_modules.where("name = 'dts'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<%= link_to l(:label_module_share) ,share_show_path(@project) %>
|
2015-03-11 15:14:23 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</li>
|
2013-12-05 16:53:03 +08:00
|
|
|
|