debian-mirror-gitlab/app/views/explore/projects/_filter.html.haml
2022-05-07 20:08:51 +05:30

9 lines
491 B
Text

- has_label = local_assigns.fetch(:has_label, false)
- feature_project_list_filter_bar = Feature.enabled?(:project_list_filter_bar)
- klass = feature_project_list_filter_bar ? 'gl-ml-3 gl-display-flex gl-flex-grow-1 gl-flex-shrink-1' : 'gl-ml-3'
- selected = projects_filter_selected(params[:visibility_level])
- if current_user
- unless has_label
%span.gl-float-left= _("Visibility:")
= gl_redirect_listbox_tag(projects_filter_items, selected, class: klass, data: { right: true })