2016-06-02 11:05:42 +05:30
|
|
|
- if can?(current_user, :push_code, @project)
|
|
|
|
.pull-right
|
|
|
|
#new-branch{'data-path' => can_create_branch_namespace_project_issue_path(@project.namespace, @project, @issue)}
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to namespace_project_branches_path(@project.namespace, @project, branch_name: @issue.to_branch_name, issue_iid: @issue.iid),
|
2016-09-13 17:45:13 +05:30
|
|
|
method: :post, class: 'btn btn-new btn-inverted has-tooltip', title: @issue.to_branch_name, disabled: 'disabled' do
|
2016-06-02 11:05:42 +05:30
|
|
|
.checking
|
2016-06-16 23:09:34 +05:30
|
|
|
= icon('spinner spin')
|
2016-06-02 11:05:42 +05:30
|
|
|
Checking branches
|
2016-06-16 23:09:34 +05:30
|
|
|
.available.hide
|
2016-06-02 11:05:42 +05:30
|
|
|
New branch
|
2016-06-16 23:09:34 +05:30
|
|
|
.unavailable.hide
|
|
|
|
= icon('exclamation-triangle')
|
2016-06-02 11:05:42 +05:30
|
|
|
New branch unavailable
|