2015-09-11 14:41:01 +05:30
|
|
|
- if current_user
|
|
|
|
%span.dropdown
|
2015-10-24 18:46:33 +05:30
|
|
|
%a.dropdown-new.btn.btn-new{href: '#', "data-toggle" => "dropdown"}
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('plus')
|
2015-09-25 12:07:36 +05:30
|
|
|
%ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
|
2015-09-11 14:41:01 +05:30
|
|
|
- if can?(current_user, :create_issue, @project)
|
|
|
|
%li
|
2015-11-26 14:37:03 +05:30
|
|
|
= link_to url_for_new_issue(@project, only_path: true) do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('exclamation-circle fw')
|
|
|
|
New issue
|
|
|
|
- if can?(current_user, :create_merge_request, @project)
|
|
|
|
%li
|
|
|
|
= link_to new_namespace_project_merge_request_path(@project.namespace, @project) do
|
|
|
|
= icon('tasks fw')
|
|
|
|
New merge request
|
|
|
|
- if can?(current_user, :create_snippet, @project)
|
|
|
|
%li
|
|
|
|
= link_to new_namespace_project_snippet_path(@project.namespace, @project) do
|
|
|
|
= icon('file-text-o fw')
|
|
|
|
New snippet
|
|
|
|
- if can?(current_user, :push_code, @project)
|
|
|
|
%li.divider
|
2015-11-26 14:37:03 +05:30
|
|
|
%li
|
|
|
|
= link_to namespace_project_new_blob_path(@project.namespace, @project, @project.default_branch || 'master'), title: 'New file' do
|
|
|
|
= icon('file fw')
|
|
|
|
New file
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
|
|
|
= link_to new_namespace_project_branch_path(@project.namespace, @project) do
|
|
|
|
= icon('code-fork fw')
|
|
|
|
New branch
|
|
|
|
%li
|
|
|
|
= link_to new_namespace_project_tag_path(@project.namespace, @project) do
|
|
|
|
= icon('tags fw')
|
|
|
|
New tag
|