Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
21c70354
Commit
21c70354
authored
Aug 06, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle group members page a bit
parent
65eddc00
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
23 deletions
+22
-23
app/views/groups/_new_group_member.html.haml
app/views/groups/_new_group_member.html.haml
+6
-3
app/views/groups/members.html.haml
app/views/groups/members.html.haml
+16
-20
No files found.
app/views/groups/_new_group_member.html.haml
View file @
21c70354
=
form_for
@users_group
,
url:
group_users_groups_path
(
@group
)
do
|
f
|
=
form_for
@users_group
,
url:
group_users_groups_path
(
@group
)
do
|
f
|
%fieldset
%fieldset
%legend
=
"New Group member(s) for
#{
@group
.
name
}
"
%legend
New member(s) for
%strong
#{
@group
.
name
}
group
%
h6
1. Choose users you want in the group
%
p
1. Choose users you want in the group
.clearfix
.clearfix
=
f
.
label
:user_ids
,
"People"
=
f
.
label
:user_ids
,
"People"
.input
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
'input-large'
)
.input
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
'input-large'
)
%
h6
2. Set access level for them
%
p
2. Set access level for them
.clearfix
.clearfix
=
f
.
label
:group_access
,
"Group Access"
=
f
.
label
:group_access
,
"Group Access"
.input
=
select_tag
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
,
@users_group
.
group_access
),
class:
"project-access-select chosen"
.input
=
select_tag
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
,
@users_group
.
group_access
),
class:
"project-access-select chosen"
...
...
app/views/groups/members.html.haml
View file @
21c70354
%h3
.page-title
Group members
%p
.light
Members of group have access to all group projects.
%hr
-
can_manage_group
=
current_user
.
can?
:manage_group
,
@group
-
can_manage_group
=
current_user
.
can?
:manage_group
,
@group
.row
.ui-box
.span6
-
if
can_manage_group
=
render
"new_group_member"
-
else
.light-well
%h4
.nothing_here_message
Only group owners can manage group members
.span6
.ui-box
.title
.title
%strong
#{
@group
.
name
}
%strong
#{
@group
.
name
}
Group M
embers
group m
embers
%small
%small
(
#{
@members
.
count
}
)
(
#{
@members
.
count
}
)
%ul
.well-list
%ul
.well-list
-
@members
.
each
do
|
member
|
-
@members
.
each
do
|
member
|
=
render
'users_groups/users_group'
,
member:
member
,
show_controls:
can_manage_group
=
render
'users_groups/users_group'
,
member:
member
,
show_controls:
can_manage_group
%p
.light
-
if
can_manage_group
Group members get access to all projects in this group
=
render
"new_group_member"
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