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
caf28f66
Commit
caf28f66
authored
Sep 18, 2018
by
Constance Okoghenun
Committed by
Phil Hughes
Sep 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Move filter dropdown from Font Awesome to our own icons"
parent
a2a00a5e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
12 deletions
+18
-12
app/assets/javascripts/filtered_search/admin_runners_filtered_search_token_keys.js
...ltered_search/admin_runners_filtered_search_token_keys.js
+1
-1
app/assets/javascripts/filtered_search/dropdown_hint.js
app/assets/javascripts/filtered_search/dropdown_hint.js
+1
-1
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
...ts/filtered_search/issuable_filtered_search_token_keys.js
+3
-3
app/assets/stylesheets/framework/filters.scss
app/assets/stylesheets/framework/filters.scss
+2
-3
app/views/admin/runners/index.html.haml
app/views/admin/runners/index.html.haml
+3
-2
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+3
-2
changelogs/unreleased/46733-move-filter-dropdown-from-font-awesome-to-our-own-icons.yml
...ve-filter-dropdown-from-font-awesome-to-our-own-icons.yml
+5
-0
No files found.
app/assets/javascripts/filtered_search/admin_runners_filtered_search_token_keys.js
View file @
caf28f66
...
@@ -5,7 +5,7 @@ const tokenKeys = [{
...
@@ -5,7 +5,7 @@ const tokenKeys = [{
type
:
'
string
'
,
type
:
'
string
'
,
param
:
'
status
'
,
param
:
'
status
'
,
symbol
:
''
,
symbol
:
''
,
icon
:
'
signal
'
,
icon
:
'
messages
'
,
tag
:
'
status
'
,
tag
:
'
status
'
,
}];
}];
...
...
app/assets/javascripts/filtered_search/dropdown_hint.js
View file @
caf28f66
...
@@ -62,7 +62,7 @@ export default class DropdownHint extends FilteredSearchDropdown {
...
@@ -62,7 +62,7 @@ export default class DropdownHint extends FilteredSearchDropdown {
renderContent
()
{
renderContent
()
{
const
dropdownData
=
this
.
tokenKeys
.
get
()
const
dropdownData
=
this
.
tokenKeys
.
get
()
.
map
(
tokenKey
=>
({
.
map
(
tokenKey
=>
({
icon
:
`
fa-
${
tokenKey
.
icon
}
`
,
icon
:
`
${
gon
.
sprite_icons
}
#
${
tokenKey
.
icon
}
`
,
hint
:
tokenKey
.
key
,
hint
:
tokenKey
.
key
,
tag
:
`:
${
tokenKey
.
tag
}
`
,
tag
:
`:
${
tokenKey
.
tag
}
`
,
type
:
tokenKey
.
type
,
type
:
tokenKey
.
type
,
...
...
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
View file @
caf28f66
...
@@ -19,14 +19,14 @@ export const tokenKeys = [{
...
@@ -19,14 +19,14 @@ export const tokenKeys = [{
type
:
'
string
'
,
type
:
'
string
'
,
param
:
'
title
'
,
param
:
'
title
'
,
symbol
:
'
%
'
,
symbol
:
'
%
'
,
icon
:
'
clock
-o
'
,
icon
:
'
clock
'
,
tag
:
'
%milestone
'
,
tag
:
'
%milestone
'
,
},
{
},
{
key
:
'
label
'
,
key
:
'
label
'
,
type
:
'
array
'
,
type
:
'
array
'
,
param
:
'
name[]
'
,
param
:
'
name[]
'
,
symbol
:
'
~
'
,
symbol
:
'
~
'
,
icon
:
'
tag
'
,
icon
:
'
labels
'
,
tag
:
'
~label
'
,
tag
:
'
~label
'
,
}];
}];
...
@@ -37,7 +37,7 @@ if (gon.current_user_id) {
...
@@ -37,7 +37,7 @@ if (gon.current_user_id) {
type
:
'
string
'
,
type
:
'
string
'
,
param
:
'
emoji
'
,
param
:
'
emoji
'
,
symbol
:
''
,
symbol
:
''
,
icon
:
'
thumb
s
-up
'
,
icon
:
'
thumb-up
'
,
tag
:
'
emoji
'
,
tag
:
'
emoji
'
,
});
});
}
}
...
...
app/assets/stylesheets/framework/filters.scss
View file @
caf28f66
...
@@ -389,9 +389,8 @@
...
@@ -389,9 +389,8 @@
.btn
{
.btn
{
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
.fa
{
svg
{
width
:
15px
;
margin-right
:
$gl-padding-8
;
line-height
:
$line-height-base
;
}
}
.dropdown-label-box
{
.dropdown-label-box
{
...
...
app/views/admin/runners/index.html.haml
View file @
caf28f66
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
%ul
{
data:
{
dropdown:
true
}
}
%ul
{
data:
{
dropdown:
true
}
}
%li
.filter-dropdown-item
{
data:
{
action:
'submit'
}
}
%li
.filter-dropdown-item
{
data:
{
action:
'submit'
}
}
=
button_tag
class:
%w[btn btn-link]
do
=
button_tag
class:
%w[btn btn-link]
do
=
icon
(
'search'
)
=
sprite_
icon
(
'search'
)
%span
%span
=
_
(
'Press Enter or click to search'
)
=
_
(
'Press Enter or click to search'
)
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
...
@@ -77,7 +77,8 @@
...
@@ -77,7 +77,8 @@
=
button_tag
class:
%w[btn btn-link]
do
=
button_tag
class:
%w[btn btn-link]
do
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
-# haml lint's ClassAttributeWithStaticValue
-# haml lint's ClassAttributeWithStaticValue
%i
.fa
{
class:
"#{'{{icon}}'}"
}
%svg
%use
{
'xlink:href'
:
"#{'{{icon}}'}"
}
%span
.js-filter-hint
%span
.js-filter-hint
{{hint}}
{{hint}}
%span
.js-filter-tag.dropdown-light-content
%span
.js-filter-tag.dropdown-light-content
...
...
app/views/shared/issuable/_search_bar.html.haml
View file @
caf28f66
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
%ul
{
data:
{
dropdown:
true
}
}
%ul
{
data:
{
dropdown:
true
}
}
%li
.filter-dropdown-item
{
data:
{
action:
'submit'
}
}
%li
.filter-dropdown-item
{
data:
{
action:
'submit'
}
}
%button
.btn.btn-link
%button
.btn.btn-link
=
icon
(
'search'
)
=
sprite_
icon
(
'search'
)
%span
%span
Press Enter or click to search
Press Enter or click to search
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
%button
.btn.btn-link
%button
.btn.btn-link
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
-# haml lint's ClassAttributeWithStaticValue
-# haml lint's ClassAttributeWithStaticValue
%i
.fa
{
class:
"#{'{{icon}}'}"
}
%svg
%use
{
'xlink:href'
:
"#{'{{icon}}'}"
}
%span
.js-filter-hint
%span
.js-filter-hint
{{hint}}
{{hint}}
%span
.js-filter-tag.dropdown-light-content
%span
.js-filter-tag.dropdown-light-content
...
...
changelogs/unreleased/46733-move-filter-dropdown-from-font-awesome-to-our-own-icons.yml
0 → 100644
View file @
caf28f66
---
title
:
Updated icons used in filtered search dropdowns
merge_request
:
21694
author
:
type
:
changed
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