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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a60ee444
Commit
a60ee444
authored
Jan 07, 2022
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update search badges to pajamas
- update tests Changelog: changed
parent
ac764452
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/helpers/search_helper.rb
app/helpers/search_helper.rb
+1
-1
spec/helpers/search_helper_spec.rb
spec/helpers/search_helper_spec.rb
+1
-0
No files found.
app/helpers/search_helper.rb
View file @
a60ee444
...
...
@@ -336,7 +336,7 @@ module SearchHelper
link_to
search_path
(
search_params
)
do
concat
label
concat
' '
concat
content_tag
(
:span
,
count
,
class:
[
'badge badge-pill gl-badge badge-muted sm'
,
badge_class
],
data:
badge_data
)
concat
gl_badge_tag
(
count
,
{
size: :sm
},
{
class:
badge_class
,
data:
badge_data
}
)
end
end
end
...
...
spec/helpers/search_helper_spec.rb
View file @
a60ee444
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
SearchHelper
do
include
MarkupHelper
include
BadgesHelper
# Override simple_sanitize for our testing purposes
def
simple_sanitize
(
str
)
...
...
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