debian-mirror-gitlab/app/views/projects/protected_branches/shared/_index.html.haml

25 lines
1.1 KiB
Text
Raw Normal View History

2019-07-31 22:56:46 +05:30
- expanded = expanded_by_default?
2017-09-10 17:25:29 +05:30
2018-11-20 20:47:30 +05:30
%section.qa-protected-branches-settings.settings.no-animate#js-protected-branches-settings{ class: ('expanded' if expanded) }
2017-09-10 17:25:29 +05:30
.settings-header
%h4
Protected Branches
2018-10-15 14:42:47 +05:30
%button.btn.js-settings-toggle.qa-expand-protected-branches{ type: 'button' }
2017-09-10 17:25:29 +05:30
= expanded ? 'Collapse' : 'Expand'
%p
Keep stable branches secure and force developers to use merge requests.
2018-03-17 18:26:18 +05:30
.settings-content
2017-09-10 17:25:29 +05:30
%p
By default, protected branches are designed to:
%ul
2018-11-08 19:23:39 +05:30
%li prevent their creation, if not already created, from everybody except Maintainers
%li prevent pushes from everybody except Maintainers
2017-09-10 17:25:29 +05:30
%li prevent <strong>anyone</strong> from force pushing to the branch
%li prevent <strong>anyone</strong> from deleting the branch
2018-03-17 18:26:18 +05:30
%p Read more about #{link_to "protected branches", help_page_path("user/project/protected_branches")} and #{link_to "project permissions", help_page_path("user/permissions")}.
2017-09-10 17:25:29 +05:30
- if can? current_user, :admin_project, @project
= content_for :create_protected_branch
= content_for :branches_list