2012-07-03 19:52:48 +02:00
|
|
|
%ul.main_menu
|
2012-08-11 00:07:50 +02:00
|
|
|
%li.home{class: project_tab_class}
|
|
|
|
= link_to @project.code, project_path(@project), title: "Project"
|
2012-07-03 19:52:48 +02:00
|
|
|
|
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-08-11 00:07:50 +02:00
|
|
|
%li{class: tree_tab_class}
|
2012-09-17 18:39:57 +02:00
|
|
|
= link_to project_tree_path(@project, @project.root_ref) do
|
2012-07-03 19:52:48 +02:00
|
|
|
Files
|
2012-08-11 00:07:50 +02:00
|
|
|
%li{class: commit_tab_class}
|
2012-09-26 00:50:02 +02:00
|
|
|
= link_to "Commits", project_commits_path(@project, @project.root_ref)
|
2012-07-03 19:52:48 +02:00
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
%li{class: tab_class(:network)}
|
2012-07-03 19:52:48 +02:00
|
|
|
= link_to "Network", graph_project_path(@project)
|
2012-02-12 01:38:38 +01:00
|
|
|
|
2012-07-05 21:59:37 +02:00
|
|
|
- if @project.issues_enabled
|
2012-08-11 00:07:50 +02:00
|
|
|
%li{class: tab_class(:issues)}
|
2012-07-05 21:59:37 +02:00
|
|
|
= link_to project_issues_filter_path(@project) do
|
|
|
|
Issues
|
2012-07-10 06:33:04 +02:00
|
|
|
%span.count.issue_counter= @project.issues.opened.count
|
2012-07-03 19:52:48 +02:00
|
|
|
|
2012-07-05 21:59:37 +02:00
|
|
|
- if @project.repo_exists?
|
2012-02-12 01:38:38 +01:00
|
|
|
- if @project.merge_requests_enabled
|
2012-08-11 00:07:50 +02:00
|
|
|
%li{class: tab_class(:merge_requests)}
|
2012-07-03 19:52:48 +02:00
|
|
|
= link_to project_merge_requests_path(@project) do
|
|
|
|
Merge Requests
|
2012-07-10 06:33:04 +02:00
|
|
|
%span.count.merge_counter= @project.merge_requests.opened.count
|
2012-02-12 01:38:38 +01:00
|
|
|
|
2012-07-05 21:59:37 +02:00
|
|
|
- if @project.wall_enabled
|
2012-08-11 00:07:50 +02:00
|
|
|
%li{class: tab_class(:wall)}
|
2012-07-05 21:59:37 +02:00
|
|
|
= link_to wall_project_path(@project) do
|
|
|
|
Wall
|
2012-06-04 00:37:27 +02:00
|
|
|
|
2012-07-05 21:59:37 +02:00
|
|
|
- if @project.wiki_enabled
|
2012-08-11 00:07:50 +02:00
|
|
|
%li{class: tab_class(:wiki)}
|
2012-07-05 21:59:37 +02:00
|
|
|
= link_to project_wiki_path(@project, :index) do
|
|
|
|
Wiki
|