gitlab-org--gitlab-foss/app/views/projects/protected_branches/index.html.haml

21 lines
979 B
Text
Raw Normal View History

2015-04-30 13:06:18 -04:00
- page_title "Protected branches"
2016-04-26 10:50:31 -04:00
.row.prepend-top-default.append-bottom-default
.col-lg-3
%h4.prepend-top-0
= page_title
%p Keep stable branches secure and force developers to use merge requests.
%p.prepend-top-20
By default, protected branches are designed to:
2016-04-26 10:50:31 -04:00
%ul
%li prevent their creation, if not already created, from everybody except Masters
%li prevent pushes from everybody except Masters
%li prevent <strong>anyone</strong> from force pushing to the branch
%li prevent <strong>anyone</strong> from deleting the branch
%p.append-bottom-0 Read more about #{link_to "protected branches", help_page_path("user/project/protected_branches"), class: "underlined-link"} and #{link_to "project permissions", help_page_path("user/permissions"), class: "underlined-link"}.
.col-lg-9
2016-04-26 10:50:31 -04:00
- if can? current_user, :admin_project, @project
= render 'create_protected_branch'
2016-04-26 10:50:31 -04:00
= render "branches_list"