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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
f19503b0
Commit
f19503b0
authored
Dec 05, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style hint dropdown
parent
2edaabfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
5 deletions
+27
-5
app/assets/javascripts/filtered_search/dropdown_hint.js.es6
app/assets/javascripts/filtered_search/dropdown_hint.js.es6
+2
-2
app/assets/stylesheets/framework/filters.scss
app/assets/stylesheets/framework/filters.scss
+22
-0
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+3
-3
No files found.
app/assets/javascripts/filtered_search/dropdown_hint.js.es6
View file @
f19503b0
...
...
@@ -32,8 +32,8 @@
}
itemClicked(e) {
const token = e.detail.selected.querySelector('.
js
-filter-hint').innerText.trim();
const tag = e.detail.selected.querySelector('.
js
-filter-tag').innerText.trim();
const token = e.detail.selected.querySelector('.
dropdown
-filter-hint').innerText.trim();
const tag = e.detail.selected.querySelector('.
dropdown
-filter-tag').innerText.trim();
if (tag.length) {
gl.FilteredSearchManager.addWordToInput(this.getSelectedText(token));
...
...
app/assets/stylesheets/framework/filters.scss
View file @
f19503b0
...
...
@@ -68,3 +68,25 @@
}
}
}
.dropdown-menu
.filter-dropdown
{
padding
:
0
;
}
.filter-dropdown
{
.btn
{
border
:
none
;
width
:
100%
;
text-align
:
left
;
padding
:
8px
16px
;
&
:hover
{
text-decoration
:
none
;
}
}
.dropdown-filter-tag
{
font-size
:
14px
;
font-weight
:
400
;
}
}
app/views/shared/issuable/_search_bar.html.haml
View file @
f19503b0
...
...
@@ -17,12 +17,12 @@
%button
.clear-search.hidden
{
type:
'button'
}
=
icon
(
'times'
)
%ul
#js-dropdown-hint
.dropdown-menu
{
'data-dynamic'
=>
true
}
%li
%li
.filter-dropdown
%button
.btn.btn-link
%i
.fa
{
'class'
:
'
{{
icon
}}
'
}
%span
.
js
-filter-hint
%span
.
dropdown
-filter-hint
{{hint}}
%span
.
js
-filter-tag
%span
.
dropdown
-filter-tag
{{tag}}
#js-dropdown-author
.dropdown-menu
{
'data-dropdown'
=>
true
}
%ul
{
'data-dynamic'
=>
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