Commit 66032506 authored by Camil Staps's avatar Camil Staps

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

parent c90fdfd8
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
%span.flex-project-title %span.flex-project-title
= _("Starrers of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(@project.name) } = _("Starrers of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(@project.name) }
%span.badge.badge-pill= @starrers.total_count %span.badge.badge-pill= @starrers.total_count
- if @starrers.size > 0 - if @starrers.size > 0 || params[:search].present?
.nav-controls .nav-controls
= form_tag request.original_url, method: :get, class: 'form-inline user-search-form flex-users-form' do = form_tag request.original_url, method: :get, class: 'form-inline user-search-form flex-users-form' do
.form-group .form-group
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment