2016-04-15 14:12:04 +00:00
|
|
|
- if params[:group_id].present?
|
|
|
|
= hidden_field_tag :group_id, params[:group_id]
|
|
|
|
- if params[:project_id].present?
|
|
|
|
= hidden_field_tag :project_id, params[:project_id]
|
2016-04-15 14:32:30 +00:00
|
|
|
.dropdown
|
2017-05-08 11:42:42 +00:00
|
|
|
%button.dropdown-menu-toggle.js-search-group-dropdown{ type: "button", data: { toggle: "dropdown", default_label: "Group:", group_id: params[:group_id] } }
|
2016-04-15 15:06:21 +00:00
|
|
|
%span.dropdown-toggle-text
|
|
|
|
Group:
|
|
|
|
- if @group.present?
|
|
|
|
= @group.name
|
|
|
|
- else
|
|
|
|
Any
|
2016-04-15 14:55:31 +00:00
|
|
|
= icon("chevron-down")
|
2016-04-15 13:13:21 +00:00
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-align-right
|
2016-04-15 15:09:34 +00:00
|
|
|
= dropdown_title("Filter results by group")
|
2016-04-15 13:13:21 +00:00
|
|
|
= dropdown_filter("Search groups")
|
2016-04-15 14:12:04 +00:00
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|
2013-01-25 08:07:21 +00:00
|
|
|
|
2016-04-15 14:32:30 +00:00
|
|
|
.dropdown.project-filter
|
2016-11-22 21:28:07 +00:00
|
|
|
%button.dropdown-menu-toggle.js-search-project-dropdown{ type: "button", data: { toggle: "dropdown", default_label: "Project:" } }
|
2016-04-15 15:06:21 +00:00
|
|
|
%span.dropdown-toggle-text
|
|
|
|
Project:
|
|
|
|
- if @project.present?
|
|
|
|
= @project.name_with_namespace
|
|
|
|
- else
|
|
|
|
Any
|
2016-04-15 14:55:31 +00:00
|
|
|
= icon("chevron-down")
|
2016-04-15 13:13:21 +00:00
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-align-right
|
2016-04-15 15:09:34 +00:00
|
|
|
= dropdown_title("Filter results by project")
|
2016-04-15 13:13:21 +00:00
|
|
|
= dropdown_filter("Search projects")
|
2016-04-15 14:12:04 +00:00
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|