gitlab-org--gitlab-foss/app/views/projects/issues/_new_branch.html.haml
Dmitriy Zaporozhets 1dc001730b
Cleanup and imrpove issue/mr buttons
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-06-08 17:20:07 +03:00

13 lines
642 B
Text

- if can?(current_user, :push_code, @project)
.pull-right
#new-branch{'data-path' => can_create_branch_namespace_project_issue_path(@project.namespace, @project, @issue)}
= link_to namespace_project_branches_path(@project.namespace, @project, branch_name: @issue.to_branch_name, issue_iid: @issue.iid),
method: :post, class: 'btn has-tooltip', title: @issue.to_branch_name, disabled: 'disabled' do
.checking
= icon('spinner spin')
Checking branches
.available.hide
New branch
.unavailable.hide
= icon('exclamation-triangle')
New branch unavailable