blob: 1430529983273c49c9ef5b1d92392937135d3bf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<table id="public-search-table">
<% @search.results.values.flatten.each do |res| %>
<tr>
<td>
<details>
<% 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>
<% unless res.url.blank? %>
<div><span><b>URL</b>: <a href="<%= res.url %>" target="_blank"><%= res.url %></a></span></div>
<% end %>
</div>
<% else %>
<summary><b><%= I18n.t('comments.title') %></b> <%= I18n.t('general.in') %> «<i><%= res.thing.title %></i>»</summary>
<div class="details-flex">
<%= res.content %>
</div>
<% end %>
</details>
</td>
</tr>
<% end %>
</table>
|