debian-mirror-gitlab/app/views/shared/groups/_dropdown.html.haml

19 lines
774 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
.dropdown.inline.js-group-filter-dropdown-wrap
2017-08-17 22:00:37 +05:30
%button.dropdown-toggle{ type: 'button', 'data-toggle' => 'dropdown' }
2017-09-10 17:25:29 +05:30
%span.dropdown-label
- if @sort.present?
= sort_options_hash[@sort]
- else
= sort_title_recently_created
2017-08-17 22:00:37 +05:30
= icon('chevron-down')
%ul.dropdown-menu.dropdown-menu-align-right
%li
= link_to filter_groups_path(sort: sort_value_recently_created) do
= sort_title_recently_created
= link_to filter_groups_path(sort: sort_value_oldest_created) do
= sort_title_oldest_created
= link_to filter_groups_path(sort: sort_value_recently_updated) do
= sort_title_recently_updated
= link_to filter_groups_path(sort: sort_value_oldest_updated) do
= sort_title_oldest_updated