aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared_searches
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared_searches')
-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 %>