From 2a391e829cbed7625692def140789efb7a67a776 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 14 Mar 2024 22:01:43 +0100 Subject: Do not hint at creating things on search action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In this page is actually a bit weird to find this kind of answer. Signed-off-by: Miquel Sabaté Solà --- app/views/searches/_search.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/searches/_search.html.erb b/app/views/searches/_search.html.erb index 310988e..c32d73a 100644 --- a/app/views/searches/_search.html.erb +++ b/app/views/searches/_search.html.erb @@ -1,7 +1,7 @@
<% els = items.values.flatten %> <% if els.empty? %> - <% if current_user.last_search_id.nil? %> + <% if current_user.last_search_id.nil? && action_name != "search" %>

<%= I18n.t('things.none') %> <%= link_to I18n.t('license.here'), new_thing_path %>.

<% else %>

<%= I18n.t('searches.none') %>.

-- cgit v1.2.3