summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_new_branch.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/issues/_new_branch.html.haml')
-rw-r--r--app/views/projects/issues/_new_branch.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/issues/_new_branch.html.haml b/app/views/projects/issues/_new_branch.html.haml
new file mode 100644
index 00000000000..e66e4669d48
--- /dev/null
+++ b/app/views/projects/issues/_new_branch.html.haml
@@ -0,0 +1,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', title: @issue.to_branch_name do
+ = icon('code-fork')
+ New Branch