Commit 0cde12d1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add link to quickly add new team member from project panel

parent a022fd41
...@@ -19,16 +19,21 @@ ...@@ -19,16 +19,21 @@
Add new Add new
%b.caret %b.caret
%ul.dropdown-menu %ul.dropdown-menu
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
%li
= link_to new_project_merge_request_path(@project), title: "New Merge Request" do
Merge Request
- if @project.issues_enabled && can?(current_user, :write_issue, @project) - if @project.issues_enabled && can?(current_user, :write_issue, @project)
%li %li
= link_to url_for_new_issue, title: "New Issue" do = link_to url_for_new_issue, title: "New Issue" do
Issue Issue
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
%li
= link_to new_project_merge_request_path(@project), title: "New Merge Request" do
Merge Request
- if @project.snippets_enabled && can?(current_user, :write_snippet, @project) - if @project.snippets_enabled && can?(current_user, :write_snippet, @project)
%li %li
= link_to new_project_snippet_path(@project), title: "New Snippet" do = link_to new_project_snippet_path(@project), title: "New Snippet" do
Snippet Snippet
- if @project.issues_enabled && can?(current_user, :admin_team_member, @project)
%li.divider
%li
= link_to new_project_team_member_path(@project), title: "New Team member" do
Team member
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment