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

_index.html.haml « shared « protected_branches « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 63748d8d85f8fd9637e3d7d57f01d274a8813499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- expanded = expanded_by_default?

%section.qa-protected-branches-settings.settings.no-animate#js-protected-branches-settings{ class: ('expanded' if expanded) }
  .settings-header
    %h4
      Protected Branches
    %button.btn.js-settings-toggle.qa-expand-protected-branches{ type: 'button' }
      = expanded ? 'Collapse' : 'Expand'
    %p
      Keep stable branches secure and force developers to use merge requests.
  .settings-content
    %p
      By default, protected branches are designed to:
      %ul
        %li prevent their creation, if not already created, from everybody except Maintainers
        %li prevent pushes from everybody except Maintainers
        %li prevent <strong>anyone</strong> from force pushing to the branch
        %li prevent <strong>anyone</strong> from deleting the branch
      %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")}.

    - if can? current_user, :admin_project, @project
      = content_for :create_protected_branch

    = content_for :branches_list