diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/shared_searches/show.html.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/shared_searches/show.html.erb b/app/views/shared_searches/show.html.erb index 1430529..bea5dc6 100644 --- a/app/views/shared_searches/show.html.erb +++ b/app/views/shared_searches/show.html.erb @@ -6,13 +6,13 @@ <% if res.is_a? Thing %> <summary><%= res.title %></summary> <div class="details-flex"> - <div><span><b>Authors</b>: <%= authors_or_editors(res) %></span></div> - <div><span><b>Publisher</b>: <%= string_maybe(res.publisher) %></span></div> - <div><span><b>Year</b>: <%= string_maybe(res.year) %></span></div> - <div><span><b>Kind</b>: <%= res.kind %></span></div> - <div><span><b>Note</b>: <%= string_maybe(res.note) %></span></div> + <div><span><b><%= I18n.t('activerecord.attributes.thing.authors') %></b>: <%= authors_or_editors(res) %></span></div> + <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> <% unless res.url.blank? %> - <div><span><b>URL</b>: <a href="<%= res.url %>" target="_blank"><%= res.url %></a></span></div> + <div><span><b><%= I18n.t('activerecord.attributes.thing.url') %></b>: <a href="<%= res.url %>" target="_blank"><%= res.url %></a></span></div> <% end %> </div> <% else %> |
