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
7aac9de3
Commit
7aac9de3
authored
Jan 27, 2021
by
Paul Slaughter
Committed by
Enrique Alcantara
Jan 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move search_settings container to HAML
This way different views can easily adjust spacing
parent
543f7ed1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
app/assets/javascripts/search_settings/components/search_settings.vue
...avascripts/search_settings/components/search_settings.vue
+6
-8
app/views/shared/_search_settings.html.haml
app/views/shared/_search_settings.html.haml
+5
-1
No files found.
app/assets/javascripts/search_settings/components/search_settings.vue
View file @
7aac9de3
...
@@ -118,12 +118,10 @@ export default {
...
@@ -118,12 +118,10 @@ export default {
};
};
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"gl-mt-5"
>
<gl-search-box-by-type
<gl-search-box-by-type
:value=
"searchTerm"
:value=
"searchTerm"
:debounce=
"$options.TYPING_DELAY"
:debounce=
"$options.TYPING_DELAY"
:placeholder=
"__('Search settings')"
:placeholder=
"__('Search settings')"
@
input=
"search"
@
input=
"search"
/>
/>
</div>
</
template
>
</
template
>
app/views/shared/_search_settings.html.haml
View file @
7aac9de3
-
container_class
=
local_assigns
.
fetch
(
:container_class
,
'gl-mt-5'
)
-
if
Feature
.
enabled?
(
:search_settings_in_page
,
@project
,
default_enabled:
false
)
-
if
Feature
.
enabled?
(
:search_settings_in_page
,
@project
,
default_enabled:
false
)
%div
{
class:
container_class
}
.js-search-settings-app
.js-search-settings-app
%input
.gl-form-input.form-control
{
type:
"text"
,
placeholder:
_
(
"Search settings"
),
aria_label:
_
(
"Search settings"
),
disabled:
true
}
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