2018-12-06 16:57:19 +00:00
|
|
|
- sort_value = @sort
|
|
|
|
- sort_title = issuable_sort_option_title(sort_value)
|
|
|
|
- viewing_issues = controller.controller_name == 'issues' || controller.action_name == 'issues'
|
|
|
|
|
|
|
|
.dropdown.inline.prepend-left-10.issue-sort-dropdown
|
|
|
|
.btn-group{ role: 'group' }
|
|
|
|
.btn-group{ role: 'group' }
|
2019-02-13 16:20:52 +00:00
|
|
|
%button.dropdown-menu-toggle{ type: 'button', data: { toggle: 'dropdown', display: 'static' }, class: 'btn btn-default' }
|
2018-12-06 16:57:19 +00:00
|
|
|
= sort_title
|
|
|
|
= icon('chevron-down')
|
|
|
|
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable.dropdown-menu-sort
|
|
|
|
%li
|
2019-05-21 22:46:12 +00:00
|
|
|
= sortable_item(sort_title_priority, page_filter_path(sort: sort_value_priority), sort_title)
|
|
|
|
= sortable_item(sort_title_created_date, page_filter_path(sort: sort_value_created_date), sort_title)
|
|
|
|
= sortable_item(sort_title_recently_updated, page_filter_path(sort: sort_value_recently_updated), sort_title)
|
|
|
|
= sortable_item(sort_title_milestone, page_filter_path(sort: sort_value_milestone), sort_title)
|
|
|
|
= sortable_item(sort_title_due_date, page_filter_path(sort: sort_value_due_date), sort_title) if viewing_issues
|
|
|
|
= sortable_item(sort_title_popularity, page_filter_path(sort: sort_value_popularity), sort_title)
|
|
|
|
= sortable_item(sort_title_label_priority, page_filter_path(sort: sort_value_label_priority), sort_title)
|
2020-03-20 09:09:22 +00:00
|
|
|
= sortable_item(sort_title_relative_position, page_filter_path(sort: sort_value_relative_position), sort_title) if viewing_issues
|
2018-12-13 00:59:31 +00:00
|
|
|
= render_if_exists('shared/ee/issuable/sort_dropdown', viewing_issues: viewing_issues, sort_title: sort_title)
|
2018-12-06 16:57:19 +00:00
|
|
|
= issuable_sort_direction_button(sort_value)
|