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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-08-04 00:45:38 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-08-06 01:19:01 +0300
commitbc5bc7cb9efe760a540b761eb3cd712ef3de129f (patch)
tree4296307ebf929be9b17f61cede608ade8ddca9b6 /app/views/projects/protected_branches
parent2b2c42a1fa5b052a6b8f0d4c43fd41e5df7b99c1 (diff)
Fix class names and move each class to its own file
Diffstat (limited to 'app/views/projects/protected_branches')
-rw-r--r--app/views/projects/protected_branches/_branches_list.html.haml12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/views/projects/protected_branches/_branches_list.html.haml b/app/views/projects/protected_branches/_branches_list.html.haml
index dc471f515d4..777e96c073f 100644
--- a/app/views/projects/protected_branches/_branches_list.html.haml
+++ b/app/views/projects/protected_branches/_branches_list.html.haml
@@ -1,16 +1,18 @@
-.panel.panel-default
+.panel.panel-default.protected-branches-list
- if @protected_branches.empty?
+ .panel-heading
+ %b Protected branch (#{@protected_branches.size})
%p.settings-message.text-center
- No branches are protected, protect a branch with the form above.
+ There are currently no protected braches, protect a branch with the form above.
- else
- can_admin_project = can?(current_user, :admin_project, @project)
- %table.table.protected-branches-list.table-bordered
+ %table.table.table-bordered
%colgroup
- %col{ width: "20%" }
- %col{ width: "30%" }
%col{ width: "25%" }
+ %col{ width: "30%" }
%col{ width: "25%" }
+ %col{ width: "20%" }
%thead
%tr
%th Protected branch (#{@protected_branches.size})