summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_new_branch.html.haml
blob: 6da8e4f33a9ce9c77fd912a5060c9ad3c6f79b90 (plain)
1
2
3
4
5
- if current_user && can?(current_user, :push_code, @project) && @issue.can_be_worked_on?(current_user)
  .pull-right
    = 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 do
      = icon('code-fork')
      New Branch