BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b3a29b31
Commit
b3a29b31
authored
Jul 19, 2016
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
8e25ddc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
_branches_list.html.haml
...iews/projects/protected_branches/_branches_list.html.haml
+2
-2
_protected_branch.html.haml
...s/projects/protected_branches/_protected_branch.html.haml
+2
-2
index.html.haml
app/views/projects/protected_branches/index.html.haml
+4
-4
No files found.
app/views/projects/protected_branches/_branches_list.html.haml
View file @
b3a29b31
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
%tr
%tr
%th
Branch
%th
Branch
%th
Last commit
%th
Last commit
%th
Allowed to
M
erge
%th
Allowed to
m
erge
%th
Allowed to
P
ush
%th
Allowed to
p
ush
-
if
can_admin_project
-
if
can_admin_project
%th
%th
%tbody
%tbody
...
...
app/views/projects/protected_branches/_protected_branch.html.haml
View file @
b3a29b31
...
@@ -17,12 +17,12 @@
...
@@ -17,12 +17,12 @@
%td
%td
=
hidden_field_tag
"allowed_to_merge_
#{
protected_branch
.
id
}
"
,
protected_branch
.
merge_access_level
.
access_level
=
hidden_field_tag
"allowed_to_merge_
#{
protected_branch
.
id
}
"
,
protected_branch
.
merge_access_level
.
access_level
=
dropdown_tag
(
protected_branch
.
merge_access_level
.
humanize
,
=
dropdown_tag
(
protected_branch
.
merge_access_level
.
humanize
,
options:
{
title:
"Allowed
To M
erge"
,
toggle_class:
'allowed-to-merge'
,
dropdown_class:
'dropdown-menu-selectable merge'
,
options:
{
title:
"Allowed
to m
erge"
,
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"
}})
data:
{
field_name:
"allowed_to_merge_
#{
protected_branch
.
id
}
"
,
url:
url
,
id:
protected_branch
.
id
,
type:
"allowed_to_merge"
}})
%td
%td
=
hidden_field_tag
"allowed_to_push_
#{
protected_branch
.
id
}
"
,
protected_branch
.
push_access_level
.
access_level
=
hidden_field_tag
"allowed_to_push_
#{
protected_branch
.
id
}
"
,
protected_branch
.
push_access_level
.
access_level
=
dropdown_tag
(
protected_branch
.
push_access_level
.
humanize
,
=
dropdown_tag
(
protected_branch
.
push_access_level
.
humanize
,
options:
{
title:
"Allowed
To P
ush"
,
toggle_class:
'allowed-to-push'
,
dropdown_class:
'dropdown-menu-selectable push'
,
options:
{
title:
"Allowed
to p
ush"
,
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"
}})
data:
{
field_name:
"allowed_to_push_
#{
protected_branch
.
id
}
"
,
url:
url
,
id:
protected_branch
.
id
,
type:
"allowed_to_push"
}})
-
if
can_admin_project
-
if
can_admin_project
%td
%td
...
...
app/views/projects/protected_branches/index.html.haml
View file @
b3a29b31
...
@@ -34,18 +34,18 @@
...
@@ -34,18 +34,18 @@
.form-group
.form-group
.prepend-left-10
.prepend-left-10
=
f
.
hidden_field
:allowed_to_merge
=
f
.
hidden_field
:allowed_to_merge
=
f
.
label
:allowed_to_merge
,
"Allowed to
M
erge: "
,
class:
"label-light append-bottom-0"
=
f
.
label
:allowed_to_merge
,
"Allowed to
m
erge: "
,
class:
"label-light append-bottom-0"
=
dropdown_tag
(
"<Make a selection>"
,
=
dropdown_tag
(
"<Make a selection>"
,
options:
{
title:
"Allowed
To M
erge"
,
toggle_class:
'allowed-to-merge'
,
options:
{
title:
"Allowed
to m
erge"
,
toggle_class:
'allowed-to-merge'
,
dropdown_class:
'dropdown-menu-selectable'
,
dropdown_class:
'dropdown-menu-selectable'
,
data:
{
field_name:
"protected_branch[allowed_to_merge]"
}})
data:
{
field_name:
"protected_branch[allowed_to_merge]"
}})
.form-group
.form-group
.prepend-left-10
.prepend-left-10
=
f
.
hidden_field
:allowed_to_push
=
f
.
hidden_field
:allowed_to_push
=
f
.
label
:allowed_to_push
,
"Allowed to
P
ush: "
,
class:
"label-light append-bottom-0"
=
f
.
label
:allowed_to_push
,
"Allowed to
p
ush: "
,
class:
"label-light append-bottom-0"
=
dropdown_tag
(
"<Make a selection>"
,
=
dropdown_tag
(
"<Make a selection>"
,
options:
{
title:
"Allowed
To P
ush"
,
toggle_class:
'allowed-to-push'
,
options:
{
title:
"Allowed
to p
ush"
,
toggle_class:
'allowed-to-push'
,
dropdown_class:
'dropdown-menu-selectable'
,
dropdown_class:
'dropdown-menu-selectable'
,
data:
{
field_name:
"protected_branch[allowed_to_push]"
}})
data:
{
field_name:
"protected_branch[allowed_to_push]"
}})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment