Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Merge requests
!76
Custom Badges
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Custom Badges
custom-badges
into
eip-develop
Overview
4
Commits
3
Pipelines
0
Changes
11
All threads resolved!
Hide all comments
Merged
Custom Badges
Victor Ghiţă
requested to merge
custom-badges
into
eip-develop
Nov 22, 2023
Overview
4
Commits
3
Pipelines
0
Changes
11
All threads resolved!
Hide all comments
0
0
Merge request reports
Compare
eip-develop
version 4
5f576200
Nov 25, 2023
version 3
b231d291
Nov 25, 2023
version 2
b231d291
Nov 24, 2023
version 1
2caae3fd
Nov 22, 2023
eip-develop (base)
and
latest version
latest version
5f576200
3 commits,
Nov 25, 2023
version 4
5f576200
3 commits,
Nov 25, 2023
version 3
b231d291
2 commits,
Nov 25, 2023
version 2
b231d291
2 commits,
Nov 24, 2023
version 1
2caae3fd
1 commit,
Nov 22, 2023
11 files
+
162
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
app/assets/javascripts/users.js
+
17
−
0
View file @ 5f576200
Edit in single-file editor
Open in Web IDE
Show full file
@@ -78,4 +78,21 @@ $(() => {
location
.
reload
();
}
});
$
(
'
.js-user-select
'
).
each
((
i
,
el
)
=>
{
const
$tgt
=
$
(
el
);
$tgt
.
select2
({
ajax
:
{
url
:
'
/users/search
'
,
headers
:
{
'
Accept
'
:
'
application/json
'
},
delay
:
100
,
data
:
function
(
params
)
{
return
{
search
:
params
.
term
};
},
processResults
:
data
=>
({
results
:
data
.
map
(
c
=>
({
id
:
c
.
id
,
text
:
`
${
c
.
username
}
(
${
c
.
email
}
)`
}))}),
}
});
});
});
\ No newline at end of file
Loading