2013-10-21 06:04:06 -04:00
|
|
|
- if current_user
|
|
|
|
.dropdown.pull-right
|
|
|
|
%a.dropdown-toggle.btn.btn-new{href: '#', "data-toggle" => "dropdown"}
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-bars
|
2013-10-21 06:04:06 -04:00
|
|
|
%ul.dropdown-menu
|
|
|
|
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
|
|
|
|
%li
|
|
|
|
= link_to url_for_new_issue, title: "New Issue" do
|
2013-11-12 05:56:20 -05:00
|
|
|
New issue
|
2013-10-21 06:04:06 -04:00
|
|
|
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to new_namespace_project_merge_request_path(@project.namespace, @project), title: "New Merge Request" do
|
2013-11-12 05:56:20 -05:00
|
|
|
New merge request
|
2013-10-21 06:04:06 -04:00
|
|
|
- if @project.snippets_enabled && can?(current_user, :write_snippet, @project)
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to new_namespace_project_snippet_path(@project.namespace, @project), title: "New Snippet" do
|
2013-11-12 05:56:20 -05:00
|
|
|
New snippet
|
|
|
|
- if can?(current_user, :admin_team_member, @project)
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to new_namespace_project_team_member_path(@project.namespace, @project), title: "New project member" do
|
2013-11-12 05:56:20 -05:00
|
|
|
New project member
|
2013-10-21 06:04:06 -04:00
|
|
|
- if can? current_user, :push_code, @project
|
|
|
|
%li.divider
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to new_namespace_project_branch_path(@project.namespace, @project) do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-code-fork
|
2013-10-21 06:04:06 -04:00
|
|
|
Git branch
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to new_namespace_project_tag_path(@project.namespace, @project) do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-tag
|
2013-10-21 06:04:06 -04:00
|
|
|
Git tag
|
|
|
|
|
|
|
|
|