_new_branch.html.haml 358 Bytes
Newer Older
1
- if current_user && can?(current_user, :push_code, @project) && @issue.can_be_worked_on?(current_user)
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
2
  .pull-right
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
3
    = link_to namespace_project_branches_path(@project.namespace, @project, branch_name: @issue.to_branch_name, issue_iid: @issue.iid), method: :post, class: 'btn', title: @issue.to_branch_name do
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
4 5
      = icon('code-fork')
      New Branch