summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_new_branch.html.haml
blob: 13e2150f997de12b455ef6496f41bbd9c404d1a0 (plain)
1
2
3
4
5
6
7
8
9
- if can?(current_user, :push_code, @project)
  .pull-right
    #new-branch.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 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