2016-04-21 10:34:00 -04:00
|
|
|
- if can?(current_user, :push_code, @project)
|
2016-02-12 13:42:25 -05:00
|
|
|
.pull-right
|
2016-09-07 13:04:59 -04:00
|
|
|
#new-branch.new-branch{'data-path' => can_create_branch_namespace_project_issue_path(@project.namespace, @project, @issue)}
|
2016-06-08 10:20:07 -04:00
|
|
|
= link_to namespace_project_branches_path(@project.namespace, @project, branch_name: @issue.to_branch_name, issue_iid: @issue.iid),
|
2016-08-17 20:00:28 -04:00
|
|
|
method: :post, class: 'btn btn-new btn-inverted btn-grouped has-tooltip available hide', title: @issue.to_branch_name do
|
|
|
|
New branch
|
|
|
|
= link_to '#', class: 'unavailable btn btn-grouped hide', disabled: 'disabled' do
|
|
|
|
= icon('exclamation-triangle')
|
|
|
|
New branch unavailable
|