summaryrefslogtreecommitdiff
path: root/app/views/projects/_project_head.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/_project_head.html.haml')
-rw-r--r--app/views/projects/_project_head.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/_project_head.html.haml b/app/views/projects/_project_head.html.haml
index 0a9e30944b2..dd15559bc8e 100644
--- a/app/views/projects/_project_head.html.haml
+++ b/app/views/projects/_project_head.html.haml
@@ -15,4 +15,13 @@
%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
+ = image_tag "add_new.png", :width => 14
+
+ - 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", :remote => true do
+ = image_tag "add_new.png", :width => 14