summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_branches
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-07-19 17:46:57 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-07-29 15:20:39 +0530
commitb3a29b3180c4edda33d82fc3564bd4991831e06c (patch)
tree81c83d66b2056c114c3d754b812d520f69e6598c /app/views/projects/protected_branches
parent8e25ddc529e41d8244c9e7b4adcf54e071b8c318 (diff)
downloadgitlab-ce-b3a29b3180c4edda33d82fc3564bd4991831e06c.tar.gz
Favor labels like `Allowed to push` over `Allowed To Push`.
- Based on feedback from @axil - http://docs.gitlab.com/ce/development/ui_guide.html#buttons
Diffstat (limited to 'app/views/projects/protected_branches')
-rw-r--r--app/views/projects/protected_branches/_branches_list.html.haml4
-rw-r--r--app/views/projects/protected_branches/_protected_branch.html.haml4
-rw-r--r--app/views/projects/protected_branches/index.html.haml8
3 files changed, 8 insertions, 8 deletions
diff --git a/app/views/projects/protected_branches/_branches_list.html.haml b/app/views/projects/protected_branches/_branches_list.html.haml
index 9240f1cf92d..a6956c8e69f 100644
--- a/app/views/projects/protected_branches/_branches_list.html.haml
+++ b/app/views/projects/protected_branches/_branches_list.html.haml
@@ -16,8 +16,8 @@
%tr
%th Branch
%th Last commit
- %th Allowed to Merge
- %th Allowed to Push
+ %th Allowed to merge
+ %th Allowed to push
- if can_admin_project
%th
%tbody
diff --git a/app/views/projects/protected_branches/_protected_branch.html.haml b/app/views/projects/protected_branches/_protected_branch.html.haml
index e27dea8145d..2fc6081e448 100644
--- a/app/views/projects/protected_branches/_protected_branch.html.haml
+++ b/app/views/projects/protected_branches/_protected_branch.html.haml
@@ -17,12 +17,12 @@
%td
= hidden_field_tag "allowed_to_merge_#{protected_branch.id}", protected_branch.merge_access_level.access_level
= dropdown_tag(protected_branch.merge_access_level.humanize,
- options: { title: "Allowed To Merge", toggle_class: 'allowed-to-merge', dropdown_class: 'dropdown-menu-selectable merge',
+ options: { title: "Allowed to merge", toggle_class: 'allowed-to-merge', dropdown_class: 'dropdown-menu-selectable merge',
data: { field_name: "allowed_to_merge_#{protected_branch.id}", url: url, id: protected_branch.id, type: "allowed_to_merge" }})
%td
= hidden_field_tag "allowed_to_push_#{protected_branch.id}", protected_branch.push_access_level.access_level
= dropdown_tag(protected_branch.push_access_level.humanize,
- options: { title: "Allowed To Push", toggle_class: 'allowed-to-push', dropdown_class: 'dropdown-menu-selectable push',
+ options: { title: "Allowed to push", toggle_class: 'allowed-to-push', dropdown_class: 'dropdown-menu-selectable push',
data: { field_name: "allowed_to_push_#{protected_branch.id}", url: url, id: protected_branch.id, type: "allowed_to_push" }})
- if can_admin_project
%td
diff --git a/app/views/projects/protected_branches/index.html.haml b/app/views/projects/protected_branches/index.html.haml
index cd87f978fb2..69caed7d979 100644
--- a/app/views/projects/protected_branches/index.html.haml
+++ b/app/views/projects/protected_branches/index.html.haml
@@ -34,18 +34,18 @@
.form-group
.prepend-left-10
= f.hidden_field :allowed_to_merge
- = f.label :allowed_to_merge, "Allowed to Merge: ", class: "label-light append-bottom-0"
+ = f.label :allowed_to_merge, "Allowed to merge: ", class: "label-light append-bottom-0"
= dropdown_tag("<Make a selection>",
- options: { title: "Allowed To Merge", toggle_class: 'allowed-to-merge',
+ options: { title: "Allowed to merge", toggle_class: 'allowed-to-merge',
dropdown_class: 'dropdown-menu-selectable',
data: { field_name: "protected_branch[allowed_to_merge]" }})
.form-group
.prepend-left-10
= f.hidden_field :allowed_to_push
- = f.label :allowed_to_push, "Allowed to Push: ", class: "label-light append-bottom-0"
+ = f.label :allowed_to_push, "Allowed to push: ", class: "label-light append-bottom-0"
= dropdown_tag("<Make a selection>",
- options: { title: "Allowed To Push", toggle_class: 'allowed-to-push',
+ options: { title: "Allowed to push", toggle_class: 'allowed-to-push',
dropdown_class: 'dropdown-menu-selectable',
data: { field_name: "protected_branch[allowed_to_push]" }})