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

31 lines
1.4 KiB
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
Activities
%li{ :class => "#{'active' if current_page?(info_project_path(@project)) || current_page?(edit_project_path(@project)) }" }
= link_to info_project_path(@project), :class => "stat-tab tab " do
Info
%li{ :class => " #{'active' if current_page?(team_project_path(@project)) }" }
= 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
Files
%li{ :class => " #{'active' if current_page?(project_snippets_path(@project)) }" }
= link_to project_snippets_path(@project), :class => "snippets-tab tab" do
Snippets
2012-01-11 08:35:21 +01:00
- if current_page?(project_snippets_path(@project))
- if can? current_user, :write_snippet, @project
2012-01-27 07:57:55 +01:00
%li
= link_to new_project_snippet_path(@project), :class => "add_new", :title => "New Snippet" do
Add new
2012-01-11 08:35:21 +01:00
- if current_page?(team_project_path(@project))
- if can? current_user, :admin_team_member, @project
2012-01-27 07:57:55 +01:00
%li
= link_to new_project_team_member_path(@project), :class => "add_new", :title => "New Team Member" do
Add New