11 lines
594 B
Text
11 lines
594 B
Text
- filter = params[:two_factor] || 'everyone'
|
|
- filter_options = { 'everyone' => _('Everyone'), 'enabled' => _('Enabled'), 'disabled' => _('Disabled') }
|
|
.dropdown.inline.member-filter-2fa-dropdown
|
|
= dropdown_toggle(filter_options[filter], { toggle: 'dropdown' })
|
|
%ul.dropdown-menu.dropdown-menu-align-right.dropdown-menu-selectable
|
|
%li.dropdown-header
|
|
= _("Filter by two-factor authentication")
|
|
- filter_options.each do |value, title|
|
|
%li
|
|
= link_to filter_group_project_member_path(two_factor: value), class: ("is-active" if filter == value) do
|
|
= title
|