scinote-web/app/views/search/results/_experiments.html.erb

28 lines
831 B
Text

<% results.each do |experiment| %>
<h5>
<%= fa_icon 'flask' %>
<%= render partial: "search/results/partials/experiment_text.html.erb",
locals: { experiment: experiment, query: search_query } %>
</h5>
<p>
<span>
<%=t "search.index.created_at" %>
<%=l experiment.created_at, format: :full %>
</span>
<br>
<span>
<%=t "search.index.project" %>
<%= render partial: "search/results/partials/project_text.html.erb",
locals: { project: experiment.project, link_to_page: :show } %>
</span>
<br>
<span>
<%=t "search.index.organization" %>
<%= render partial: "search/results/partials/organization_text.html.erb",
locals: { organization: experiment.project.organization } %>
</span>
</p>
<hr>
<% end %>