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
Tatuya Kamada
gitlab-ce
Commits
fb25327e
Commit
fb25327e
authored
Mar 08, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert data attributes in search_bar.html.haml
parent
f1e76a6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+17
-17
No files found.
app/views/shared/issuable/_search_bar.html.haml
View file @
fb25327e
...
@@ -14,18 +14,18 @@
...
@@ -14,18 +14,18 @@
.scroll-container
.scroll-container
%ul
.tokens-container.list-unstyled
%ul
.tokens-container.list-unstyled
%li
.input-token
%li
.input-token
%input
.form-control.filtered-search
{
placeholder:
'Search or filter results...'
,
'data-id'
=>
'filtered-search'
,
'data-project-id'
=>
@project
.
id
,
'data-username-params'
=>
@users
.
to_json
(
only:
[
:id
,
:username
]),
'data-base-endpoint'
=>
namespace_project_path
(
@project
.
namespace
,
@project
)
}
%input
.form-control.filtered-search
{
placeholder:
'Search or filter results...'
,
data:
{
id:
'filtered-search'
,
'project-id'
=>
@project
.
id
,
'username-params'
=>
@users
.
to_json
(
only:
[
:id
,
:username
]),
'base-endpoint'
=>
namespace_project_path
(
@project
.
namespace
,
@project
)
}
}
=
icon
(
'filter'
)
=
icon
(
'filter'
)
%button
.clear-search.hidden
{
type:
'button'
}
%button
.clear-search.hidden
{
type:
'button'
}
=
icon
(
'times'
)
=
icon
(
'times'
)
#js-dropdown-hint
.dropdown-menu.hint-dropdown
#js-dropdown-hint
.dropdown-menu.hint-dropdown
%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'
)
=
icon
(
'search'
)
%span
%span
Keep typing and press Enter
Keep typing and press Enter
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
,
'data-dropdown'
=>
true
}
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
%li
.filter-dropdown-item
%li
.filter-dropdown-item
%button
.btn.btn-link
%button
.btn.btn-link
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
...
@@ -36,50 +36,50 @@
...
@@ -36,50 +36,50 @@
%span
.js-filter-tag.dropdown-light-content
%span
.js-filter-tag.dropdown-light-content
{{tag}}
{{tag}}
#js-dropdown-author
.dropdown-menu
{
data:
{
icon:
'pencil'
,
hint:
'author'
,
tag:
'@author'
}
}
#js-dropdown-author
.dropdown-menu
{
data:
{
icon:
'pencil'
,
hint:
'author'
,
tag:
'@author'
}
}
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
,
'data-dropdown'
=>
true
}
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
%li
.filter-dropdown-item
%li
.filter-dropdown-item
%button
.btn.btn-link.dropdown-user
%button
.btn.btn-link.dropdown-user
%img
.avatar
{
'data-src'
=>
'
{{
avatar_url
}}
', alt: '
{{
name
}}\
's avatar'
,
width:
'30'
}
%img
.avatar
{
alt:
'
{{
name
}}\
's avatar'
,
width:
'30'
,
data:
{
src:
'
{{
avatar_url
}}
'
}
}
.dropdown-user-details
.dropdown-user-details
%span
%span
{{name}}
{{name}}
%span
.dropdown-light-content
%span
.dropdown-light-content
@{{username}}
@{{username}}
#js-dropdown-assignee
.dropdown-menu
{
data:
{
icon:
'user'
,
hint:
'assignee'
,
tag:
'@assignee'
}
}
#js-dropdown-assignee
.dropdown-menu
{
data:
{
icon:
'user'
,
hint:
'assignee'
,
tag:
'@assignee'
}
}
%ul
{
'data-dropdown'
=>
true
}
%ul
{
data:
{
dropdown:
true
}
}
%li
.filter-dropdown-item
{
'data-value'
=>
'none'
}
%li
.filter-dropdown-item
{
data:
{
value:
'none'
}
}
%button
.btn.btn-link
%button
.btn.btn-link
No Assignee
No Assignee
%li
.divider
%li
.divider
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
,
'data-dropdown'
=>
true
}
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
%li
.filter-dropdown-item
%li
.filter-dropdown-item
%button
.btn.btn-link.dropdown-user
%button
.btn.btn-link.dropdown-user
%img
.avatar
{
'data-src'
=>
'
{{
avatar_url
}}
', alt: '
{{
name
}}\
's avatar'
,
width:
'30'
}
%img
.avatar
{
alt:
'
{{
name
}}\
's avatar'
,
width:
'30'
,
data:
{
src:
'
{{
avatar_url
}}
'
}
}
.dropdown-user-details
.dropdown-user-details
%span
%span
{{name}}
{{name}}
%span
.dropdown-light-content
%span
.dropdown-light-content
@{{username}}
@{{username}}
#js-dropdown-milestone
.dropdown-menu
{
data:
{
icon:
'clock-o'
,
hint:
'milestone'
,
tag:
'%milestone'
}
}
#js-dropdown-milestone
.dropdown-menu
{
data:
{
icon:
'clock-o'
,
hint:
'milestone'
,
tag:
'%milestone'
}
}
%ul
{
'data-dropdown'
=>
true
}
%ul
{
data:
{
dropdown:
true
}
}
%li
.filter-dropdown-item
{
'data-value'
=>
'none'
}
%li
.filter-dropdown-item
{
data:
{
value:
'none'
}
}
%button
.btn.btn-link
%button
.btn.btn-link
No Milestone
No Milestone
%li
.filter-dropdown-item
{
'data-value'
=>
'upcoming'
}
%li
.filter-dropdown-item
{
data:
{
value:
'upcoming'
}
}
%button
.btn.btn-link
%button
.btn.btn-link
Upcoming
Upcoming
%li
.divider
%li
.divider
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
,
'data-dropdown'
=>
true
}
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
%li
.filter-dropdown-item
%li
.filter-dropdown-item
%button
.btn.btn-link.js-data-value
%button
.btn.btn-link.js-data-value
{{title}}
{{title}}
#js-dropdown-label
.dropdown-menu
{
data:
{
icon:
'tag'
,
hint:
'label'
,
tag:
'~label'
}
}
#js-dropdown-label
.dropdown-menu
{
data:
{
icon:
'tag'
,
hint:
'label'
,
tag:
'~label'
}
}
%ul
{
'data-dropdown'
=>
true
}
%ul
{
data:
{
dropdown:
true
}
}
%li
.filter-dropdown-item
{
'data-value'
=>
'none'
}
%li
.filter-dropdown-item
{
data:
{
value:
'none'
}
}
%button
.btn.btn-link
%button
.btn.btn-link
No Label
No Label
%li
.divider
%li
.divider
%ul
.filter-dropdown
{
'data-dynamic'
=>
true
,
'data-dropdown'
=>
true
}
%ul
.filter-dropdown
{
data:
{
dynamic:
true
,
dropdown:
true
}
}
%li
.filter-dropdown-item
%li
.filter-dropdown-item
%button
.btn.btn-link
%button
.btn.btn-link
%span
.dropdown-label-box
{
style:
'
background:
{{
color
}}
'
}
%span
.dropdown-label-box
{
style:
'
background:
{{
color
}}
'
}
...
...
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