From 3e6ae9e523b410e9f100c8840ee9b6cc77043537 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 1 Jul 2025 21:06:30 +0200 Subject: Show all searches at the top bar always MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since 8d954606eaf3 ("Do not allow to show non-shared searches"), we were only showing saved searches, but that collided with the @searches on the top bar. This went unnoticed until now, in which the top bar will always display all searches, while the shared searches content will only display the shared ones. Signed-off-by: Miquel Sabaté Solà --- app/views/shared_searches/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/shared_searches') diff --git a/app/views/shared_searches/index.html.erb b/app/views/shared_searches/index.html.erb index a17537c..f9d3289 100644 --- a/app/views/shared_searches/index.html.erb +++ b/app/views/shared_searches/index.html.erb @@ -3,11 +3,11 @@

<%= I18n.t('searches.shared.title') %>

- <% if @searches.empty? %> + <% if @saved_searches.empty? %>
<%= I18n.t('searches.shared.none') %>.
<% else %>
- <% @searches.each do |s| %> + <% @saved_searches.each do |s| %>
<%= link_to s.name, search_shared_path(s) %>
-- cgit v1.2.3