gitlabhq/app/views/projects/_project_head.html.haml

19 lines
955 B
Plaintext
Raw Normal View History

2012-01-27 07:57:55 +01:00
%ul.tabs
%li{ :class => "#{'active' if current_page?(project_path(@project)) }" }
= link_to project_path(@project), :class => "activities-tab tab" do
Show
- if can? current_user, :admin_project, @project
%li{ :class => "#{'active' if current_page?(edit_project_path(@project)) }" }
= link_to edit_project_path(@project), :class => "stat-tab tab " do
Edit
2012-01-27 07:57:55 +01:00
%li{ :class => " #{'active' if (controller.controller_name == "team_members") || current_page?(team_project_path(@project)) }" }
2012-01-27 07:57:55 +01:00
= link_to team_project_path(@project), :class => "team-tab tab" do
Team
%li{ :class => "#{'active' if current_page?(files_project_path(@project)) }" }
= link_to files_project_path(@project), :class => "files-tab tab " do
Attachments
%li{ :class => " #{'active' if (controller.controller_name == "snippets") }" }
2012-01-27 07:57:55 +01:00
= link_to project_snippets_path(@project), :class => "snippets-tab tab" do
Snippets