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
e68d0841
Commit
e68d0841
authored
Sep 10, 2012
by
Alex Denisov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into api_errors_refactoring
parents
a0655572
52d29f5d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
10 deletions
+21
-10
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+3
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+4
-0
app/views/team_members/_show.html.haml
app/views/team_members/_show.html.haml
+13
-7
lib/gitlab/backend/gitolite_config.rb
lib/gitlab/backend/gitolite_config.rb
+1
-1
No files found.
app/assets/stylesheets/common.scss
View file @
e68d0841
...
...
@@ -181,11 +181,12 @@ span.update-author {
}
&
.joined
{
background-color
:
#1c
b9ff
;
background-color
:
#1c
a9dd
;
}
&
.left
{
background-color
:
#ff5057
;
background-color
:
#888
;
float
:none
;
}
}
...
...
app/helpers/projects_helper.rb
View file @
e68d0841
...
...
@@ -2,5 +2,9 @@ module ProjectsHelper
def
grouper_project_members
(
project
)
@project
.
users_projects
.
sort_by
(
&
:project_access
).
reverse
.
group_by
(
&
:project_access
)
end
def
remove_from_team_message
(
project
,
member
)
"You are going to remove
#{
member
.
user_name
}
from
#{
project
.
name
}
. Are you sure?"
end
end
app/views/team_members/_show.html.haml
View file @
e68d0841
-
user
=
member
.
user
-
allow_admin
=
can?
current_user
,
:admin_project
,
@project
%tr
{
id:
dom_id
(
member
),
class:
"team_member_row user_#{user.id}"
}
%td
%td
.span6
=
link_to
project_team_member_path
(
@project
,
member
),
title:
user
.
name
,
class:
"dark"
do
=
image_tag
gravatar_icon
(
user
.
email
,
40
),
class:
"avatar s32"
=
link_to
project_team_member_path
(
@project
,
member
),
title:
user
.
name
,
class:
"dark"
do
%strong
=
truncate
(
user
.
name
,
lenght:
40
)
%br
%div
.cgray
=
user
.
email
%small
.cgray
=
user
.
email
%td
%td
.span5
.right
-
if
current_user
==
user
%span
.btn.disabled
This is you!
-
if
@project
.
owner
==
user
%span
.btn.disabled.success
Project
Owner
-
if
user
.
blocked
%span
.btn.disabled.success
Owner
-
els
if
user
.
blocked
%span
.btn.disabled.blocked
Blocked
-
elsif
allow_admin
=
link_to
project_team_member_path
(
project_id:
@project
,
id:
member
.
id
),
confirm:
remove_from_team_message
(
@project
,
member
),
method: :delete
,
class:
"very_small btn danger"
do
%i
.icon-minus.icon-white
-
if
allow_admin
=
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"
=
f
.
select
:project_access
,
options_for_select
(
UsersProject
.
access_roles
,
member
.
project_access
),
{},
class:
"medium project-access-select
span2
"
lib/gitlab/backend/gitolite_config.rb
View file @
e68d0841
...
...
@@ -148,7 +148,7 @@ module Gitlab
# Enable access to all repos for gitolite admin.
# We use it for accept merge request feature
def
admin_all_repo
owner_name
=
Gitlab
.
settings
.
gitolite_admin_key
owner_name
=
Gitlab
.
config
.
gitolite_admin_key
# @ALL repos premission for gitolite owner
repo_name
=
"@all"
...
...
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