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
b10423e8
Commit
b10423e8
authored
Jun 07, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add preset selection buttons
parent
eb079d31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
ee/app/views/shared/epic/_search_bar.html.haml
ee/app/views/shared/epic/_search_bar.html.haml
+19
-3
No files found.
ee/app/views/shared/epic/_search_bar.html.haml
View file @
b10423e8
-
type
=
local_assigns
.
fetch
(
:type
)
-
hide_sort_dropdown
=
local_assigns
.
fetch
(
:hide_sort_dropdown
,
false
)
-
show_roadmap_presets
=
local_assigns
.
fetch
(
:show_roadmap_presets
,
false
)
-
full_path
=
@project
.
present?
?
@project
.
full_path
:
@group
.
full_path
-
preset_layout
=
params
[
:layout
].
present?
?
params
[
:layout
]
:
"MONTHS"
-
is_quarters
=
preset_layout
==
"QUARTERS"
-
is_months
=
preset_layout
==
"MONTHS"
-
is_weeks
=
preset_layout
==
"WEEKS"
.epics-filters
.epics-details-filters.filtered-search-block.row-content-block.second-block
=
form_tag
page_filter_path
(
without:
[
:author_id
,
:search
]),
method: :get
,
class:
'filter-form js-filter-form'
do
.epics-filters
{
class:
"#{'epics-roadmap-filters' if show_roadmap_presets}"
}
.d-flex.epics-details-filters.filtered-search-block.row-content-block.second-block
-
if
show_roadmap_presets
.btn-group.btn-group-toggle.append-right-default.js-btn-roadmap-presets
{
data:
{
toggle:
'buttons'
}
}
%label
.btn.btn-default.btn-roadmap-preset
{
class:
(
"active"
if
is_quarters
)
}
%input
{
type:
'radio'
,
name:
'presetType'
,
autocomplete:
'off'
,
checked:
(
"checked"
if
is_quarters
),
value:
'QUARTERS'
}
=
_
(
'Quarters'
)
%label
.btn.btn-default.btn-roadmap-preset
{
class:
(
"active"
if
is_months
)
}
%input
{
type:
'radio'
,
name:
'presetType'
,
autocomplete:
'off'
,
checked:
(
"checked"
if
is_months
),
value:
'MONTHS'
}
=
_
(
'Months'
)
%label
.btn.btn-default.btn-roadmap-preset
{
class:
(
"active"
if
is_weeks
)
}
%input
{
type:
'radio'
,
name:
'presetType'
,
autocomplete:
'off'
,
checked:
(
"checked"
if
is_weeks
),
value:
'WEEKS'
}
=
_
(
'Weeks'
)
=
form_tag
page_filter_path
(
without:
[
:author_id
,
:search
]),
method: :get
,
class:
'flex-fill filter-form js-filter-form'
do
-
if
params
[
:search
].
present?
=
hidden_field_tag
:search
,
params
[
:search
]
.epics-other-filters.filtered-search-wrapper
...
...
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