mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Improve protected branches selectbox options
This commit is contained in:
@@ -50,12 +50,13 @@ module Gitlab
|
||||
end
|
||||
|
||||
def protection_options
|
||||
{
|
||||
"None" => PROTECTION_NONE,
|
||||
"Protect, developers can push" => PROTECTION_DEV_CAN_PUSH,
|
||||
"Full protection" => PROTECTION_FULL,
|
||||
}
|
||||
{
|
||||
"Not protected, developers and masters can (force) push and delete the branch" => PROTECTION_NONE,
|
||||
"Partially protected, developers can also push but prevent all force pushes and deletion" => PROTECTION_DEV_CAN_PUSH,
|
||||
"Fully protected, only masters can push and prevent all force pushes and deletion" => PROTECTION_FULL,
|
||||
}
|
||||
end
|
||||
|
||||
def protection_values
|
||||
protection_options.values
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user