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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
4c5babd9
Commit
4c5babd9
authored
Mar 22, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed bold on any/unassigned authors
parent
aec0e226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
13 deletions
+22
-13
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+22
-13
No files found.
app/assets/javascripts/users_select.js.coffee
View file @
4c5babd9
...
@@ -30,6 +30,7 @@ class @UsersSelect
...
@@ -30,6 +30,7 @@ class @UsersSelect
if
showNullUser
if
showNullUser
showDivider
+=
1
showDivider
+=
1
users
.
unshift
(
users
.
unshift
(
beforeDivider
:
true
name
:
'Unassigned'
,
name
:
'Unassigned'
,
id
:
0
id
:
0
)
)
...
@@ -39,6 +40,7 @@ class @UsersSelect
...
@@ -39,6 +40,7 @@ class @UsersSelect
name
=
showAnyUser
name
=
showAnyUser
name
=
'Any User'
if
name
==
true
name
=
'Any User'
if
name
==
true
anyUser
=
{
anyUser
=
{
beforeDivider
:
true
name
:
name
,
name
:
name
,
id
:
null
id
:
null
}
}
...
@@ -75,20 +77,27 @@ class @UsersSelect
...
@@ -75,20 +77,27 @@ class @UsersSelect
selected
=
if
user
.
id
is
selectedId
then
"is-active"
else
""
selected
=
if
user
.
id
is
selectedId
then
"is-active"
else
""
img
=
""
img
=
""
if
avatar
if
user
.
beforeDivider
?
img
=
"<img src='
#{
avatar
}
' class='avatar avatar-inline' width='30' />"
"<li>
<a href='#' class='
#{
selected
}
'>
"<li>
<a href='#' class='dropdown-menu-user-link
#{
selected
}
'>
#{
img
}
<strong class='dropdown-menu-user-full-name'>
#{
user
.
name
}
#{
user
.
name
}
</strong>
</a>
<span class='dropdown-menu-user-username'>
</li>"
#{
username
}
else
</span>
if
avatar
</a>
img
=
"<img src='
#{
avatar
}
' class='avatar avatar-inline' width='30' />"
</li>"
"<li>
<a href='#' class='dropdown-menu-user-link
#{
selected
}
'>
#{
img
}
<strong class='dropdown-menu-user-full-name'>
#{
user
.
name
}
</strong>
<span class='dropdown-menu-user-username'>
#{
username
}
</span>
</a>
</li>"
)
)
$
(
'.ajax-users-select'
).
each
(
i
,
select
)
=>
$
(
'.ajax-users-select'
).
each
(
i
,
select
)
=>
...
...
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