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
059eb92f
Commit
059eb92f
authored
Dec 06, 2016
by
Douglas Barbosa Alexandre
Committed by
Phil Hughes
Dec 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the `ldap?` predicated method
parent
e0014e3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+6
-6
No files found.
app/views/shared/members/_member.html.haml
View file @
059eb92f
...
...
@@ -35,7 +35,7 @@
%span
{
class:
(
'text-warning'
if
member
.
expires_soon?
)
}
Expires in
#{
distance_of_time_in_words_to_now
(
member
.
expires_at
)
}
-
if
member
.
ldap
-
if
member
.
ldap
?
%span
.label.label-info.pull-right.visible-xs-block
LDAP
...
...
@@ -50,7 +50,7 @@
=
time_ago_with_tooltip
(
member
.
created_at
)
-
if
show_roles
.controls.member-controls
-
if
member
.
ldap
-
if
member
.
ldap
?
%span
.label.label-info.members-ldap.hidden-xs
LDAP
-
if
show_controls
&&
(
member
.
respond_to?
(
:group
)
&&
@group
)
||
(
member
.
respond_to?
(
:project
)
&&
@project
)
...
...
@@ -73,7 +73,7 @@
=
link_to
role
,
"javascript:void(0)"
,
class:
(
"is-active"
if
member
.
access_level
==
role_id
),
data:
{
id:
role_id
}
-
if
member
.
ldap
-
if
member
.
ldap
?
%li
.divider
%li
=
link_to
"Revert to LDAP group sync settings"
,
"javascript:void(0)"
,
...
...
@@ -95,7 +95,7 @@
class:
'btn btn-success prepend-left-10'
,
title:
'Grant access'
-
if
can?
(
current_user
,
action_member_permission
(
:destroy
,
member
),
member
)
&&
!
member
.
ldap
-
if
can?
(
current_user
,
action_member_permission
(
:destroy
,
member
),
member
)
&&
!
member
.
ldap
?
-
if
current_user
==
user
=
link_to
icon
(
'sign-out'
,
text:
'Leave'
),
polymorphic_path
([
:leave
,
member
.
source
,
:members
]),
method: :delete
,
...
...
@@ -111,7 +111,7 @@
%span
.visible-xs-block
Delete
=
icon
(
'trash'
,
class:
'hidden-xs'
)
-
elsif
member
.
ldap
&&
can_admin_member
-
elsif
member
.
ldap
?
&&
can_admin_member
%button
.btn.btn-default.btn-ldap-override.js-ldap-permissions
{
type:
"button"
,
"aria-label"
=>
"Edit permissions"
,
data:
{
name:
user
.
name
,
id:
dom_id
(
member
)
}
}
...
...
@@ -120,7 +120,7 @@
=
icon
(
"pencil"
,
class:
"hidden-xs hidden-sm"
)
-
else
%span
.member-access-text
=
member
.
human_access
-
if
member
.
ldap
&&
can_admin_member
-
if
member
.
ldap
?
&&
can_admin_member
%li
.alert.alert-member-ldap
{
style:
"display: none;"
}
%p
=
user
.
name
...
...
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