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
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
Hide 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 = [{
type
:
'
string
'
,
param
:
'
status
'
,
symbol
:
''
,
icon
:
'
signal
'
,
icon
:
'
messages
'
,
tag
:
'
status
'
,
}];
...
...
app/assets/javascripts/filtered_search/dropdown_hint.js
View file @
caf28f66
...
...
@@ -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 @
caf28f66
...
...
@@ -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 @
caf28f66
...
...
@@ -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 @
caf28f66
...
...
@@ -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 @
caf28f66
...
...
@@ -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
...
...
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