2012-01-14 22:46:06 +01:00
|
|
|
.top-tabs
|
2011-12-30 07:54:42 +01:00
|
|
|
= link_to project_path(@project), :class => "activities-tab tab #{'active' if current_page?(project_path(@project)) }" do
|
2011-12-28 08:38:50 +01:00
|
|
|
%span
|
|
|
|
Activities
|
2011-12-30 07:54:42 +01:00
|
|
|
= link_to info_project_path(@project), :class => "stat-tab tab #{'active' if current_page?(info_project_path(@project)) || current_page?(edit_project_path(@project)) }" do
|
2011-12-28 08:38:50 +01:00
|
|
|
%span
|
|
|
|
Info
|
2011-12-30 07:54:42 +01:00
|
|
|
= link_to team_project_path(@project), :class => "team-tab tab #{'active' if current_page?(team_project_path(@project)) }" do
|
2011-12-28 08:38:50 +01:00
|
|
|
%span
|
|
|
|
Team
|
2011-12-30 07:54:42 +01:00
|
|
|
= link_to files_project_path(@project), :class => "files-tab tab #{'active' if current_page?(files_project_path(@project)) }" do
|
2011-12-28 08:38:50 +01:00
|
|
|
%span
|
|
|
|
Files
|
2011-12-30 07:54:42 +01:00
|
|
|
= link_to project_snippets_path(@project), :class => "snippets-tab tab #{'active' if current_page?(project_snippets_path(@project)) }" do
|
2011-12-28 08:38:50 +01:00
|
|
|
%span
|
|
|
|
Snippets
|
|
|
|
|
2012-01-11 08:35:21 +01:00
|
|
|
- if current_page?(project_snippets_path(@project))
|
|
|
|
- if can? current_user, :write_snippet, @project
|
|
|
|
= link_to new_project_snippet_path(@project), :class => "add_new", :title => "New Snippet" do
|
|
|
|
= image_tag "add_new.png", :width => 14
|
2011-12-28 08:38:50 +01:00
|
|
|
|
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-14 22:46:06 +01:00
|
|
|
= link_to new_project_team_member_path(@project), :class => "add_new", :title => "New Team Member" do
|
2012-01-11 08:35:21 +01:00
|
|
|
= image_tag "add_new.png", :width => 14
|