summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_branches/show.html.haml
blob: 4d8169815b3916564fdd0655a97db1f50aef34b3 (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
- page_title @protected_branch.name, "Protected Branches"

.row.prepend-top-default.append-bottom-default
  .col-lg-3
    %h4.prepend-top-0
      = @protected_branch.name

  .col-lg-9
    %h5 Matching Branches
    - if @matching_branches.present?
      .table-responsive
        %table.table.protected-branches-list
          %colgroup
            %col{ width: "30%" }
            %col{ width: "30%" }
          %thead
            %tr
              %th Branch
              %th Last commit
          %tbody
            - @matching_branches.each do |matching_branch|
              = render partial: "matching_branch", object: matching_branch
    - else
      %p.settings-message.text-center
        Couldn't find any matching branches.