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
Léo-Paul Géneau
gitlab-ce
Commits
08ecf0e7
Commit
08ecf0e7
authored
Aug 09, 2016
by
Adam Niedzielski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use "is_a?" because it is more readable than checking the "type" field.
parent
23c1f9f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+1
-1
No files found.
app/views/shared/members/_member.html.haml
View file @
08ecf0e7
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
=
form_for
member
,
remote:
true
do
|
f
|
=
form_for
member
,
remote:
true
do
|
f
|
.prepend-top-10
.prepend-top-10
=
f
.
select
:access_level
,
options_for_select
(
member
.
class
.
access_level_roles
,
member
.
access_level
),
{},
class:
'form-control'
=
f
.
select
:access_level
,
options_for_select
(
member
.
class
.
access_level_roles
,
member
.
access_level
),
{},
class:
'form-control'
-
if
member
.
type
==
'ProjectMember'
-
if
member
.
is_a?
(
ProjectMember
)
.prepend-top-10
.prepend-top-10
=
f
.
text_field
:expires_at
,
class:
'form-control js-access-expiration-date'
,
placeholder:
'Access expiration date'
,
id:
"member_expires_at_
#{
member
.
id
}
"
=
f
.
text_field
:expires_at
,
class:
'form-control js-access-expiration-date'
,
placeholder:
'Access expiration date'
,
id:
"member_expires_at_
#{
member
.
id
}
"
.prepend-top-10
.prepend-top-10
...
...
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