Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-12-26 11:14:53 +0300
committerMarin Jankovski <maxlazio@gmail.com>2014-12-26 11:14:53 +0300
commitb7eb0d178e2a1e951ba6e110ad703def3fb35357 (patch)
tree2f4b27fc329f5c5ab996b28365496830dbdff051 /app/views/projects/protected_branches
parent6ce3b1a31174a9f09dd34c114c7fb13d898db6ec (diff)
Add checkbox for protected branch developer can push to.
Diffstat (limited to 'app/views/projects/protected_branches')
-rw-r--r--app/views/projects/protected_branches/index.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/protected_branches/index.html.haml b/app/views/projects/protected_branches/index.html.haml
index 227a2f9a061..2d04c572c73 100644
--- a/app/views/projects/protected_branches/index.html.haml
+++ b/app/views/projects/protected_branches/index.html.haml
@@ -22,6 +22,10 @@
= f.label :name, "Branch", class: 'control-label'
.col-sm-10
= f.select(:name, @project.open_branches.map { |br| [br.name, br.name] } , {include_blank: "Select branch"}, {class: "select2"})
+ .form-group
+ = f.label :developers_can_push, "Developers can push?", class: 'control-label'
+ .col-sm-10
+ = f.check_box :developers_can_push
.form-actions
= f.submit 'Protect', class: "btn-create btn"
- unless @branches.empty?