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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
4b50cb7a
Commit
4b50cb7a
authored
Jul 07, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts
parent
86e77ceb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+6
-15
No files found.
app/views/shared/members/_member.html.haml
View file @
4b50cb7a
...
@@ -53,18 +53,13 @@
...
@@ -53,18 +53,13 @@
.controls.member-controls
.controls.member-controls
=
render
'shared/members/ee/ldap_tag'
,
can_override:
can_override_member
,
visible:
false
=
render
'shared/members/ee/ldap_tag'
,
can_override:
can_override_member
,
visible:
false
-
if
show_controls
&&
member
.
source
==
current_resource
-
if
show_controls
&&
member
.
source
==
current_resource
<
<<<<<<
HEAD
-
if
user
!=
current_user
&&
(
can_admin_member
||
can_override_member
)
==
=====
-
if
member
.
invite?
&&
can?
(
current_user
,
action_member_permission
(
:admin
,
member
),
member
.
source
)
-
if
member
.
invite?
&&
can?
(
current_user
,
action_member_permission
(
:admin
,
member
),
member
.
source
)
=
link_to
icon
(
'paper-plane'
),
polymorphic_path
([
:resend_invite
,
member
]),
=
link_to
icon
(
'paper-plane'
),
polymorphic_path
([
:resend_invite
,
member
]),
method: :post
,
method: :post
,
class:
'btn btn-default prepend-left-10 hidden-xs'
,
class:
'btn btn-default prepend-left-10 hidden-xs'
,
title:
'Resend invite'
title:
'Resend invite'
-
if
user
!=
current_user
&&
can_admin_member
-
if
user
!=
current_user
&&
(
can_admin_member
||
can_override_member
)
>
>>>>>> 8e55acb... Improve members view on mobile
=
form_for
member
,
remote:
true
,
html:
{
class:
'form-horizontal js-edit-member-form'
}
do
|
f
|
=
form_for
member
,
remote:
true
,
html:
{
class:
'form-horizontal js-edit-member-form'
}
do
|
f
|
=
f
.
hidden_field
:access_level
=
f
.
hidden_field
:access_level
.member-form-control.dropdown.append-right-5
.member-form-control.dropdown.append-right-5
...
@@ -100,9 +95,9 @@
...
@@ -100,9 +95,9 @@
method: :post
,
method: :post
,
class:
'btn btn-success prepend-left-10'
,
class:
'btn btn-success prepend-left-10'
,
title:
'Grant access'
do
title:
'Grant access'
do
%span
{
class:
(
'visible-xs-block'
if
force_mobile_view
==
false
)
}
%span
{
class:
(
'visible-xs-block'
unless
force_mobile_view
)
}
Grant access
Grant access
-
if
force_mobile_view
==
false
-
unless
force_mobile_view
=
icon
(
'check inverse'
,
class:
'hidden-xs'
)
=
icon
(
'check inverse'
,
class:
'hidden-xs'
)
-
if
can?
(
current_user
,
action_member_permission
(
:destroy
,
member
),
member
)
-
if
can?
(
current_user
,
action_member_permission
(
:destroy
,
member
),
member
)
...
@@ -118,15 +113,11 @@
...
@@ -118,15 +113,11 @@
data:
{
confirm:
remove_member_message
(
member
)
},
data:
{
confirm:
remove_member_message
(
member
)
},
class:
'btn btn-remove prepend-left-10'
,
class:
'btn btn-remove prepend-left-10'
,
title:
remove_member_title
(
member
)
do
title:
remove_member_title
(
member
)
do
%span
{
class:
(
'visible-xs-block'
if
force_mobile_view
==
false
)
}
%span
{
class:
(
'visible-xs-block'
unless
force_mobile_view
)
}
Delete
Delete
<
<<<<<<
HEAD
-
unless
force_mobile_view
=
icon
(
'trash'
,
class:
'hidden-xs'
)
=
icon
(
'trash'
,
class:
'hidden-xs'
)
=
render
'shared/members/ee/override_member_buttons'
,
group:
@group
,
member:
member
,
user:
user
,
action: :edit
,
can_override:
can_override_member
=
render
'shared/members/ee/override_member_buttons'
,
group:
@group
,
member:
member
,
user:
user
,
action: :edit
,
can_override:
can_override_member
==
=====
-
if
force_mobile_view
==
false
=
icon
(
'trash'
,
class:
'hidden-xs'
)
>
>>>>>> 8e55acb... Improve members view on mobile
-
else
-
else
%span
.member-access-text
=
member
.
human_access
%span
.member-access-text
=
member
.
human_access
...
...
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