2016-06-02 11:05:42 +05:30
|
|
|
- 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]
|
|
|
|
.dropdown
|
2019-03-02 22:35:43 +05:30
|
|
|
%button.dropdown-menu-toggle.js-search-group-dropdown{ type: "button", data: { toggle: "dropdown", default_label: _('Group:'), group_id: params[:group_id] } }
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.dropdown-toggle-text
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Group:")
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @group.present?
|
|
|
|
= @group.name
|
|
|
|
- else
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Any")
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon("chevron-down")
|
2018-11-08 19:23:39 +05:30
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-right
|
2019-03-02 22:35:43 +05:30
|
|
|
= dropdown_title(_("Filter results by group"))
|
|
|
|
= dropdown_filter(_("Search groups"))
|
2016-06-02 11:05:42 +05:30
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.dropdown.project-filter
|
2019-03-02 22:35:43 +05:30
|
|
|
%button.dropdown-menu-toggle.js-search-project-dropdown{ type: "button", data: { toggle: "dropdown", default_label: _('Project:') } }
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.dropdown-toggle-text
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Project:")
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @project.present?
|
2018-03-27 19:54:05 +05:30
|
|
|
= @project.full_name
|
2016-06-02 11:05:42 +05:30
|
|
|
- else
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Any")
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon("chevron-down")
|
2018-11-08 19:23:39 +05:30
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-right
|
2019-03-02 22:35:43 +05:30
|
|
|
= dropdown_title(_("Filter results by project"))
|
|
|
|
= dropdown_filter(_("Search projects"))
|
2016-06-02 11:05:42 +05:30
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|