diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-14 22:01:43 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-14 22:01:43 +0100 |
| commit | 2a391e829cbed7625692def140789efb7a67a776 (patch) | |
| tree | 2009acaf49144553e2762ff58196b639106a73c2 | |
| parent | 52565f713de6a0b3385ac2eb67e0aa4ff6fd8341 (diff) | |
| download | operum-2a391e829cbed7625692def140789efb7a67a776.tar.gz operum-2a391e829cbed7625692def140789efb7a67a776.zip | |
Do not hint at creating things on search action
In this page is actually a bit weird to find this kind of answer.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | app/views/searches/_search.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <div id="items"> <% els = items.values.flatten %> <% if els.empty? %> - <% if current_user.last_search_id.nil? %> + <% if current_user.last_search_id.nil? && action_name != "search" %> <p><%= I18n.t('things.none') %> <%= link_to I18n.t('license.here'), new_thing_path %>.</p> <% else %> <p><%= I18n.t('searches.none') %>.</p> |
