2012-04-10 08:51:08 +03:00
|
|
|
%ul.nav.nav-tabs
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{ class: "#{'active' if current_page?(project_path(@project)) }" }
|
|
|
|
= link_to project_path(@project), class: "activities-tab tab" do
|
2012-04-17 22:08:07 +03:00
|
|
|
%i.icon-home
|
2012-02-08 01:00:49 +02:00
|
|
|
Show
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{ class: " #{'active' if (controller.controller_name == "team_members") || current_page?(team_project_path(@project)) }" }
|
|
|
|
= link_to team_project_path(@project), class: "team-tab tab" do
|
2012-04-17 22:08:07 +03:00
|
|
|
%i.icon-user
|
2012-01-27 08:57:55 +02:00
|
|
|
Team
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{ class: "#{'active' if current_page?(files_project_path(@project)) }" }
|
|
|
|
= link_to files_project_path(@project), class: "files-tab tab " do
|
2012-02-08 19:18:38 +02:00
|
|
|
Attachments
|
2012-08-10 18:07:50 -04:00
|
|
|
%li{ class: " #{'active' if (controller.controller_name == "snippets") }" }
|
|
|
|
= link_to project_snippets_path(@project), class: "snippets-tab tab" do
|
2012-01-27 08:57:55 +02:00
|
|
|
Snippets
|
2012-02-20 20:37:37 +02:00
|
|
|
|
|
|
|
- if can? current_user, :admin_project, @project
|
2012-08-10 18:07:50 -04:00
|
|
|
%li.right{class: "#{'active' if controller.controller_name == "deploy_keys"}"}
|
2012-06-04 01:37:27 +03:00
|
|
|
= link_to project_deploy_keys_path(@project) do
|
2012-02-20 08:39:03 +02:00
|
|
|
%span
|
|
|
|
Deploy Keys
|
2012-08-10 18:07:50 -04:00
|
|
|
%li.right{class: "#{'active' if controller.controller_name == "hooks" }"}
|
2012-06-04 01:37:27 +03:00
|
|
|
= link_to project_hooks_path(@project) do
|
2012-03-03 13:03:03 +02:00
|
|
|
%span
|
|
|
|
Hooks
|
2012-08-10 18:07:50 -04:00
|
|
|
%li.right{ class: "#{'active' if current_page?(edit_project_path(@project)) }" }
|
|
|
|
= link_to edit_project_path(@project), class: "stat-tab tab " do
|
2012-04-17 22:08:07 +03:00
|
|
|
%i.icon-edit
|
2012-03-03 13:03:03 +02:00
|
|
|
Edit
|