2012-01-28 11:40:17 +01:00
|
|
|
%ul.tabs
|
|
|
|
%li{:class => "#{'active' if current_page?(project_repository_path(@project)) }"}
|
|
|
|
= link_to project_repository_path(@project) do
|
2012-01-14 20:26:35 +01:00
|
|
|
%span
|
2012-01-28 11:40:17 +01:00
|
|
|
Activities
|
2012-02-15 21:02:33 +01:00
|
|
|
%li{:class => "#{'active' if current_page?(branches_project_repository_path(@project)) || current_page?(project_protected_branches_path(@project)) }"}
|
2012-01-28 11:40:17 +01:00
|
|
|
= link_to branches_project_repository_path(@project) do
|
|
|
|
%span
|
|
|
|
Branches
|
|
|
|
%li{:class => "#{'active' if current_page?(tags_project_repository_path(@project)) }"}
|
|
|
|
= link_to tags_project_repository_path(@project) do
|
|
|
|
%span
|
|
|
|
Tags
|
|
|
|
%li{:class => "#{'active' if controller.controller_name == "hooks" }"}
|
|
|
|
= link_to project_hooks_path do
|
|
|
|
%span
|
|
|
|
Hooks
|
|
|
|
%li{:class => "#{'active' if controller.controller_name == "deploy_keys"}"}
|
2012-01-14 20:26:35 +01:00
|
|
|
- if can? current_user, :admin_project, @project
|
2012-01-28 11:40:17 +01:00
|
|
|
= link_to project_deploy_keys_path(@project) do
|
|
|
|
%span
|
|
|
|
Deploy Keys
|
2011-12-30 21:56:13 +01:00
|
|
|
|