From 13f522f8022a99dc9e6ae2f56582072c5fc8c17a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 17 Mar 2024 21:27:57 +0100 Subject: Polish the UI on shared_searches#show MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/views/shared_searches/show.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/shared_searches/show.html.erb b/app/views/shared_searches/show.html.erb index bea5dc6..d981cde 100644 --- a/app/views/shared_searches/show.html.erb +++ b/app/views/shared_searches/show.html.erb @@ -10,9 +10,11 @@
<%= I18n.t('activerecord.attributes.thing.publisher') %>: <%= string_maybe(res.publisher) %>
<%= I18n.t('activerecord.attributes.thing.year') %>: <%= string_maybe(res.year) %>
<%= I18n.t('activerecord.attributes.thing.kind') %>: <%= I18n.t("things.kind.#{res.kind}") %>
-
<%= I18n.t('activerecord.attributes.thing.note') %>: <%= string_maybe(res.note) %>
+ <% if res.note.present? %> +
<%= I18n.t('activerecord.attributes.thing.note') %>: <%= res.note %>
+ <% end %> <% unless res.url.blank? %> -
<%= I18n.t('activerecord.attributes.thing.url') %>: <%= res.url %>
+
<%= I18n.t('activerecord.attributes.thing.url') %>
<% end %> <% else %> -- cgit v1.2.3