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
Jérome Perrin
gitlab-ce
Commits
fed6ab24
Commit
fed6ab24
authored
Sep 07, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change representation of team members. Group by role
parent
61c74493
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
20 deletions
+21
-20
Gemfile.lock
Gemfile.lock
+2
-2
app/views/keys/index.html.haml
app/views/keys/index.html.haml
+2
-2
app/views/projects/_team.html.haml
app/views/projects/_team.html.haml
+9
-8
app/views/team_members/_show.html.haml
app/views/team_members/_show.html.haml
+8
-8
No files found.
Gemfile.lock
View file @
fed6ab24
...
@@ -108,7 +108,7 @@ GEM
...
@@ -108,7 +108,7 @@ GEM
bcrypt-ruby (3.0.1)
bcrypt-ruby (3.0.1)
blankslate (2.1.2.4)
blankslate (2.1.2.4)
bootstrap-sass (2.0.4.0)
bootstrap-sass (2.0.4.0)
builder (3.0.
0
)
builder (3.0.
2
)
capybara (1.1.2)
capybara (1.1.2)
mime-types (>= 1.16)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
nokogiri (>= 1.3.3)
...
@@ -125,7 +125,7 @@ GEM
...
@@ -125,7 +125,7 @@ GEM
charlock_holmes (0.6.8)
charlock_holmes (0.6.8)
childprocess (0.3.2)
childprocess (0.3.2)
ffi (~> 1.0.6)
ffi (~> 1.0.6)
chosen-rails (0.9.8)
chosen-rails (0.9.8
.3
)
railties (~> 3.0)
railties (~> 3.0)
thor (~> 0.14)
thor (~> 0.14)
coderay (1.0.6)
coderay (1.0.6)
...
...
app/views/keys/index.html.haml
View file @
fed6ab24
app/views/projects/_team.html.haml
View file @
fed6ab24
%table
-
@project
.
users_projects
.
group_by
(
&
:project_access
).
each
do
|
access
,
members
|
%table
%thead
%thead
%tr
%tr
%th
User
%th
.span7
=
Project
.
access_options
.
key
(
access
).
pluralize
%th
Permissions
%th
%tbody
%tbody
-
@project
.
users_project
s
.
each
do
|
up
|
-
member
s
.
each
do
|
up
|
=
render
(
partial:
'team_members/show'
,
locals:
{
member:
up
})
=
render
(
partial:
'team_members/show'
,
locals:
{
member:
up
})
...
...
app/views/team_members/_show.html.haml
View file @
fed6ab24
...
@@ -2,12 +2,6 @@
...
@@ -2,12 +2,6 @@
-
allow_admin
=
can?
current_user
,
:admin_project
,
@project
-
allow_admin
=
can?
current_user
,
:admin_project
,
@project
%tr
{
id:
dom_id
(
member
),
class:
"team_member_row user_#{user.id}"
}
%tr
{
id:
dom_id
(
member
),
class:
"team_member_row user_#{user.id}"
}
%td
%td
.right
-
if
@project
.
owner
==
user
%span
.label
Project Owner
-
if
user
.
blocked
%span
.label
Blocked
=
link_to
project_team_member_path
(
@project
,
member
),
title:
user
.
name
,
class:
"dark"
do
=
link_to
project_team_member_path
(
@project
,
member
),
title:
user
.
name
,
class:
"dark"
do
=
image_tag
gravatar_icon
(
user
.
email
,
40
),
class:
"avatar s32"
=
image_tag
gravatar_icon
(
user
.
email
,
40
),
class:
"avatar s32"
=
link_to
project_team_member_path
(
@project
,
member
),
title:
user
.
name
,
class:
"dark"
do
=
link_to
project_team_member_path
(
@project
,
member
),
title:
user
.
name
,
class:
"dark"
do
...
@@ -16,5 +10,11 @@
...
@@ -16,5 +10,11 @@
%div
.cgray
=
user
.
email
%div
.cgray
=
user
.
email
%td
%td
.right
-
if
@project
.
owner
==
user
%span
.btn.disabled.success
Project Owner
-
if
user
.
blocked
%span
.btn.disabled.blocked
Blocked
-
if
allow_admin
=
form_for
(
member
,
as: :team_member
,
url:
project_team_member_path
(
@project
,
member
))
do
|
f
|
=
form_for
(
member
,
as: :team_member
,
url:
project_team_member_path
(
@project
,
member
))
do
|
f
|
=
f
.
select
:project_access
,
options_for_select
(
UsersProject
.
access_roles
,
member
.
project_access
),
{},
class:
"medium project-access-select"
,
disabled:
!
allow_admin
=
f
.
select
:project_access
,
options_for_select
(
UsersProject
.
access_roles
,
member
.
project_access
),
{},
class:
"medium project-access-select"
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