aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-17 21:27:57 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-17 21:27:57 +0100
commit13f522f8022a99dc9e6ae2f56582072c5fc8c17a (patch)
tree47f08794574170d25598bcc64a3166092dadd287 /app/views
parentba3d2b5743de9c3a91d79d34cdf81aa1e835f995 (diff)
downloadoperum-13f522f8022a99dc9e6ae2f56582072c5fc8c17a.tar.gz
operum-13f522f8022a99dc9e6ae2f56582072c5fc8c17a.zip
Polish the UI on shared_searches#show
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared_searches/show.html.erb6
1 files changed, 4 insertions, 2 deletions
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 @@
<div><span><b><%= I18n.t('activerecord.attributes.thing.publisher') %></b>: <%= string_maybe(res.publisher) %></span></div>
<div><span><b><%= I18n.t('activerecord.attributes.thing.year') %></b>: <%= string_maybe(res.year) %></span></div>
<div><span><b><%= I18n.t('activerecord.attributes.thing.kind') %></b>: <%= I18n.t("things.kind.#{res.kind}") %></span></div>
- <div><span><b><%= I18n.t('activerecord.attributes.thing.note') %></b>: <%= string_maybe(res.note) %></span></div>
+ <% if res.note.present? %>
+ <div><span><b><%= I18n.t('activerecord.attributes.thing.note') %></b>: <%= res.note %></span></div>
+ <% end %>
<% unless res.url.blank? %>
- <div><span><b><%= I18n.t('activerecord.attributes.thing.url') %></b>: <a href="<%= res.url %>" target="_blank"><%= res.url %></a></span></div>
+ <div><span><a href="<%= res.url %>" target="_blank"><%= I18n.t('activerecord.attributes.thing.url') %></a></span></div>
<% end %>
</div>
<% else %>