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
c0d202b2
Commit
c0d202b2
authored
Nov 08, 2021
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert search tabs to pajamas
Changelog: other
parent
3df3912b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/search/_category.html.haml
app/views/search/_category.html.haml
+1
-1
ee/spec/views/search/_category.html.haml_spec.rb
ee/spec/views/search/_category.html.haml_spec.rb
+3
-3
No files found.
app/views/search/_category.html.haml
View file @
c0d202b2
...
...
@@ -5,7 +5,7 @@
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
.fade-left
=
sprite_icon
(
'chevron-lg-left'
,
size:
12
)
.fade-right
=
sprite_icon
(
'chevron-lg-right'
,
size:
12
)
%ul
.nav-links.search-filter.scrolling-tabs.nav.nav-tabs
=
gl_tabs_nav
({
class:
'search-filter scrolling-tabs nav-links'
})
do
-
if
@project
-
if
project_search_tabs?
(
:blobs
)
=
search_filter_link
'blobs'
,
_
(
"Code"
),
data:
{
qa_selector:
'code_tab'
}
...
...
ee/spec/views/search/_category.html.haml_spec.rb
View file @
c0d202b2
...
...
@@ -27,7 +27,7 @@ RSpec.describe 'search/_category' do
render
expect
(
rendered
).
to
have_selector
(
'.
nav-tabs
li'
,
text:
tab_name
)
expect
(
rendered
).
to
have_selector
(
'.
search-filter
li'
,
text:
tab_name
)
end
it
'hides the tab if FF is disabled'
do
...
...
@@ -35,7 +35,7 @@ RSpec.describe 'search/_category' do
render
expect
(
rendered
).
not_to
have_selector
(
'.
nav-tabs
li'
,
text:
tab_name
)
expect
(
rendered
).
not_to
have_selector
(
'.
search-filter
li'
,
text:
tab_name
)
end
end
...
...
@@ -49,7 +49,7 @@ RSpec.describe 'search/_category' do
render
expect
(
rendered
).
to
have_selector
(
'.
nav-tabs
li'
,
text:
tab_name
)
expect
(
rendered
).
to
have_selector
(
'.
search-filter
li'
,
text:
tab_name
)
end
end
end
...
...
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