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
iv
gitlab-ce
Commits
ae3cb2d6
Commit
ae3cb2d6
authored
Dec 20, 2013
by
skv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coffee interpolation for template of user select
parent
0e4a8e23
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+6
-6
No files found.
app/assets/javascripts/users_select.js.coffee
View file @
ae3cb2d6
...
@@ -6,12 +6,12 @@ $ ->
...
@@ -6,12 +6,12 @@ $ ->
avatar
=
gon
.
gravatar_url
avatar
=
gon
.
gravatar_url
avatar
=
avatar
.
replace
(
'%{hash}'
,
md5
(
user
.
email
))
avatar
=
avatar
.
replace
(
'%{hash}'
,
md5
(
user
.
email
))
avatar
=
avatar
.
replace
(
'%{size}'
,
'24'
)
avatar
=
avatar
.
replace
(
'%{size}'
,
'24'
)
markup
=
"<div class='user-result'>"
markup
+=
"<div class='user-image'><img class='avatar s24' src='"
+
avatar
+
"'></div>"
"<div class='user-result'>
markup
+=
"<div class='user-name'>"
+
user
.
name
+
"</div>"
<div class='user-image'><img class='avatar s24' src='
#{
avatar
}
'></div>
markup
+=
"<div class='user-username'>"
+
user
.
username
+
"</div>"
<div class='user-name'>
#{
user
.
name
}
</div>
markup
+=
"</div>"
<div class='user-username'>
#{
user
.
username
}
</div>
markup
</div>"
userFormatSelection
=
(
user
)
->
userFormatSelection
=
(
user
)
->
user
.
name
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