Commit c74386d9 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch '323917-remove-roadmap-haml-filtered-search' into 'master'

Remove unused layout preset and state dropdown

See merge request gitlab-org/gitlab!72979
parents 1f7e7487 552c8bb3
- 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)
- hide_extra_sort_options = local_assigns.fetch(:hide_extra_sort_options, false)
- preset_layout = roadmap_layout
- is_quarters = preset_layout == "QUARTERS"
- is_months = preset_layout == "MONTHS"
- is_weeks = preset_layout == "WEEKS"
.epics-filters{ class: "#{'epics-roadmap-filters' if show_roadmap_presets}" }
.epics-filters
.epics-details-filters.filtered-search-block.d-flex.flex-column.flex-md-row.row-content-block.second-block
- if show_roadmap_presets
.btn-group.btn-group-toggle.gl-mr-3.js-btn-roadmap-presets{ data: { toggle: 'buttons' } }
%label.btn.gl-button.btn-secondary.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.gl-button.btn-secondary.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.gl-button.btn-secondary.btn-roadmap-preset{ class: ("active" if is_weeks) }
%input{ type: 'radio', name: 'presetType', autocomplete: 'off', checked: ("checked" if is_weeks), value: 'WEEKS' }
= _('Weeks')
.filter-dropdown-container.gl-mr-3
= render 'shared/epic/state_dropdown'
= form_tag page_filter_path, method: :get, class: 'flex-fill filter-form js-filter-form' do
- if params[:search].present?
= hidden_field_tag :search, params[:search]
......
.dropdown.gl-new-dropdown.inline.dropdown-epics-state
%button.btn.gl-button.btn-default.dropdown-toggle{ type: 'button', data: { toggle: 'dropdown' } }
= epic_state_title(@epics_state)
= sprite_icon('chevron-down', css_class: 'gl-button-icon gl-icon dropdown-chevron' )
%ul.dropdown-menu.dropdown-menu-selectable
.gl-new-dropdown-inner
%li
= epic_state_dropdown_link('all', @epics_state)
.dropdown-divider
%li
= epic_state_dropdown_link('opened', @epics_state)
%li
= epic_state_dropdown_link('closed', @epics_state)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment