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

_branches_list.html.haml « protected_branches « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 720d67dff7c4ff7faa08a3a0b8bd20a14b90db43 (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
25
26
27
28
%h5.prepend-top-0
  Already Protected (#{@protected_branches.size})
- if @protected_branches.empty?
  %p.settings-message.text-center
    No branches are protected, protect a branch with the form above.
- else
  - can_admin_project = can?(current_user, :admin_project, @project)
  .table-responsive
    %table.table.protected-branches-list
      %colgroup
        %col{ width: "20%" }
        %col{ width: "30%" }
        %col{ width: "25%" }
        %col{ width: "25%" }
        - if can_admin_project
          %col
      %thead
        %tr
          %th Protected Branch
          %th Commit
          %th Developers Can Push
          %th Developers Can Merge
          - if can_admin_project
            %th
      %tbody
        = render partial: @protected_branches, locals: { can_admin_project: can_admin_project }

  = paginate @protected_branches, theme: 'gitlab'