From 717d1cd2fc6572040ec6657de7e4b542fff081e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 21 Feb 2025 15:58:02 +0100 Subject: [PATCH] Use a one-line if condition in proposals index With the multiline condition, HTML Beautifier (which we're about to introduce in order to manage ERB indentation) gets confused. In this context, a one-line condition is also more readable. --- app/views/proposals/index.html.erb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/views/proposals/index.html.erb b/app/views/proposals/index.html.erb index b54cd409b..c8be341e8 100644 --- a/app/views/proposals/index.html.erb +++ b/app/views/proposals/index.html.erb @@ -8,12 +8,7 @@ <%= render "shared/canonical", href: proposals_url %> <% end %> -<% if [ - @search_terms, - @advanced_search_terms, - params[:retired].present?, - params[:selected].present? - ].any? %> +<% if [@search_terms, @advanced_search_terms, params[:retired].present?, params[:selected].present?].any? %> <%= render Shared::SearchResultsSummaryComponent.new( results: @proposals, search_terms: @search_terms,