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
197b9793
Commit
197b9793
authored
Jul 06, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UI for member row on project/group members pages
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7950fa48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
45 deletions
+53
-45
lists.scss
app/assets/stylesheets/framework/lists.scss
+9
-0
_member.html.haml
app/views/shared/members/_member.html.haml
+44
-45
No files found.
app/assets/stylesheets/framework/lists.scss
View file @
197b9793
...
...
@@ -137,6 +137,15 @@ ul.content-list {
padding-top
:
1px
;
float
:
right
;
>
.control-text
{
margin-right
:
$gl-padding-top
;
line-height
:
40px
;
&
:last-child
{
margin-right
:
0
;
}
}
>
.btn
,
>
.btn-group
{
margin-right
:
$gl-padding-top
;
...
...
app/views/shared/members/_member.html.haml
View file @
197b9793
...
...
@@ -3,75 +3,74 @@
-
user
=
member
.
user
%li
.js-toggle-container
{
class:
dom_class
(
member
),
id:
dom_id
(
member
)
}
%span
{
class:
(
"list-item-name"
if
show_controls
)
}
-
if
user
=
image_tag
avatar_icon
(
user
,
24
),
class:
"avatar s24"
,
alt:
''
%strong
=
link_to
user
.
name
,
user_path
(
user
)
%span
.cgray
=
user
.
username
-
if
user
==
current_user
%span
.label.label-success
It's you
-
if
user
.
blocked?
%label
.label.label-danger
%strong
Blocked
-
if
member
.
request?
%span
.cgray
– Requested
=
time_ago_with_tooltip
(
member
.
requested_at
)
-
else
%span
.cgray
=
"(joined
#{
time_ago_with_tooltip
(
member
.
created_at
)
}
)"
-
else
=
image_tag
avatar_icon
(
member
.
invite_email
,
24
),
class:
"avatar s24"
,
alt:
''
%strong
=
member
.
invite_email
%span
.cgray
– Invited
-
if
member
.
created_by
by
=
link_to
member
.
created_by
.
name
,
user_path
(
member
.
created_by
)
=
time_ago_with_tooltip
(
member
.
created_at
)
-
if
show_controls
&&
can?
(
current_user
,
action_member_permission
(
:admin
,
member
),
member
.
source
)
=
link_to
'Resend invite'
,
polymorphic_path
([
:resend_invite
,
member
]),
method: :post
,
class:
'btn-xs btn'
-
if
show_roles
%span
.pull-right
%strong
=
member
.
human_access
.controls
%strong
.control-text
=
member
.
human_access
-
if
show_controls
-
if
!
user
&&
can?
(
current_user
,
action_member_permission
(
:admin
,
member
),
member
.
source
)
=
link_to
'Resend invite'
,
polymorphic_path
([
:resend_invite
,
member
]),
method: :post
,
class:
'btn'
-
if
can?
(
current_user
,
action_member_permission
(
:update
,
member
),
member
)
=
button_tag
icon
(
'pencil'
),
type:
'button'
,
class:
'btn
-xs btn btn-grouped
inline js-toggle-button'
,
class:
'btn inline js-toggle-button'
,
title:
'Edit access level'
-
if
member
.
request?
=
link_to
icon
(
'check inverse'
),
polymorphic_path
([
:approve_access_request
,
member
]),
method: :post
,
class:
'btn
-xs btn
btn-success'
,
class:
'btn btn-success'
,
title:
'Grant access'
-
if
can?
(
current_user
,
action_member_permission
(
:destroy
,
member
),
member
)
-
if
current_user
==
user
=
link_to
icon
(
'sign-out'
,
text:
'Leave'
),
polymorphic_path
([
:leave
,
member
.
source
,
:members
]),
method: :delete
,
data:
{
confirm:
leave_confirmation_message
(
member
.
source
)
},
class:
'btn
-xs btn
btn-remove'
class:
'btn btn-remove'
-
else
=
link_to
icon
(
'trash'
),
member
,
remote:
true
,
method: :delete
,
data:
{
confirm:
remove_member_message
(
member
)
},
class:
'btn
-xs btn
btn-remove'
,
class:
'btn btn-remove'
,
title:
remove_member_title
(
member
)
%span
{
class:
(
"list-item-name"
if
show_controls
)
}
-
if
user
=
image_tag
avatar_icon
(
user
,
40
),
class:
"avatar s40"
,
alt:
''
%strong
=
link_to
user
.
name
,
user_path
(
user
)
%span
.cgray
=
user
.
username
-
if
user
==
current_user
%span
.label.label-success
It's you
-
if
user
.
blocked?
%label
.label.label-danger
%strong
Blocked
.cgray
-
if
member
.
request?
– Requested
=
time_ago_with_tooltip
(
member
.
requested_at
)
-
else
Joined
#{
time_ago_with_tooltip
(
member
.
created_at
)
}
-
else
=
image_tag
avatar_icon
(
member
.
invite_email
,
40
),
class:
"avatar s40"
,
alt:
''
%strong
=
member
.
invite_email
.cgray
Invited
-
if
member
.
created_by
by
=
link_to
member
.
created_by
.
name
,
user_path
(
member
.
created_by
)
=
time_ago_with_tooltip
(
member
.
created_at
)
-
if
show_roles
.edit-member.hide.js-toggle-content
%br
=
form_for
member
,
remote:
true
do
|
f
|
...
...
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