2012-02-12 01:38:38 +01:00
|
|
|
%nav.main_menu
|
2012-04-24 20:47:01 +02:00
|
|
|
= link_to @project.code, project_path(@project), :class => "home #{project_tab_class}", :title => "Project"
|
2012-02-12 01:38:38 +01:00
|
|
|
- if @project.repo_exists?
|
2012-02-21 23:31:18 +01:00
|
|
|
- if can? current_user, :download_code, @project
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class do
|
2012-05-15 18:35:18 +02:00
|
|
|
Files
|
2012-02-21 23:31:18 +01:00
|
|
|
= link_to "Commits", project_commits_path(@project), :class => commit_tab_class
|
2012-02-12 01:38:38 +01:00
|
|
|
|
|
|
|
= link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
|
|
|
|
- if @project.issues_enabled
|
2012-04-09 00:01:42 +02:00
|
|
|
= link_to project_issues_filter_path(@project), :class => issues_tab? ? "current" : nil do
|
2012-06-04 00:37:27 +02:00
|
|
|
Issues
|
2012-02-19 20:30:31 +01:00
|
|
|
%span.count= @project.issues.opened.count
|
2012-02-12 01:38:38 +01:00
|
|
|
- if @project.merge_requests_enabled
|
|
|
|
= link_to project_merge_requests_path(@project), :class => (controller.controller_name == "merge_requests") ? "current" : nil do
|
|
|
|
Merge Requests
|
2012-02-19 20:34:59 +01:00
|
|
|
%span.count= @project.merge_requests.opened.count
|
2012-02-12 01:38:38 +01:00
|
|
|
|
|
|
|
- if @project.wall_enabled
|
2012-04-09 00:01:42 +02:00
|
|
|
= link_to wall_project_path(@project), :class => wall_tab? ? "current" : nil do
|
2012-02-12 16:48:17 +01:00
|
|
|
Wall
|
2012-06-04 00:37:27 +02:00
|
|
|
|
2012-02-19 15:35:31 +01:00
|
|
|
- if @project.wiki_enabled
|
2012-02-19 20:16:29 +01:00
|
|
|
= link_to project_wiki_path(@project, :index), :class => (controller.controller_name == "wikis") ? "current" : nil do
|
2012-02-19 15:35:31 +01:00
|
|
|
Wiki
|