Starrers view: fix search bar when a query did not match anything

This commit is contained in:
Camil Staps 2019-02-01 21:20:06 +01:00
parent c90fdfd8c6
commit 66032506b5
No known key found for this signature in database
GPG key ID: 4A9BFD4F6A415F83

View file

@ -5,7 +5,7 @@
%span.flex-project-title
= _("Starrers of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(@project.name) }
%span.badge.badge-pill= @starrers.total_count
- if @starrers.size > 0
- if @starrers.size > 0 || params[:search].present?
.nav-controls
= form_tag request.original_url, method: :get, class: 'form-inline user-search-form flex-users-form' do
.form-group