28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
.top-tabs
|
|
= link_to project_path(@project), :class => "activities-tab tab #{'active' if current_page?(project_path(@project)) }" do
|
|
%span
|
|
Activities
|
|
= 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
|
|
%span
|
|
Info
|
|
= link_to team_project_path(@project), :class => "team-tab tab #{'active' if current_page?(team_project_path(@project)) }" do
|
|
%span
|
|
Team
|
|
= link_to files_project_path(@project), :class => "files-tab tab #{'active' if current_page?(files_project_path(@project)) }" do
|
|
%span
|
|
Files
|
|
= link_to project_snippets_path(@project), :class => "snippets-tab tab #{'active' if current_page?(project_snippets_path(@project)) }" do
|
|
%span
|
|
Snippets
|
|
|
|
- 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
|
|
Add new
|
|
|
|
|
|
- if current_page?(team_project_path(@project))
|
|
- if can? current_user, :admin_team_member, @project
|
|
= link_to new_project_team_member_path(@project), :class => "add_new", :title => "New Team Member" do
|
|
Add New
|