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