2018-12-05 23:21:45 +05:30
|
|
|
- sort_title = label_sort_options_hash[@sort] || sort_title_name_desc
|
|
|
|
.dropdown.inline
|
2019-01-03 12:48:30 +05:30
|
|
|
%button.dropdown-toggle{ type: 'button', data: { toggle: 'dropdown' } }
|
2018-12-05 23:21:45 +05:30
|
|
|
= sort_title
|
|
|
|
= icon('chevron-down')
|
|
|
|
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-sort
|
|
|
|
%li
|
|
|
|
- label_sort_options_hash.each do |value, title|
|
|
|
|
= sortable_item(title, page_filter_path(sort: value, label: true, subscribed: params[:subscribed]), sort_title)
|