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
2008361b
Commit
2008361b
authored
Dec 22, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5889 from skv-headless/master
coffee interpolation for template of user select
parents
b09b9480
ae3cb2d6
Changes
1
Hide 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 @
2008361b
...
@@ -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