2016-07-26 16:55:27 +08:00
|
|
|
<% results.each do |experiment| %>
|
|
|
|
<h5>
|
|
|
|
<span class="glyphicon glyphicon-filter"></span>
|
2016-07-26 18:12:43 +08:00
|
|
|
<%= render partial: "search/results/partials/experiment_text.html.erb",
|
|
|
|
locals: { experiment: experiment, query: search_query } %>
|
2016-07-26 16:55:27 +08:00
|
|
|
</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: :canvas } %>
|
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<span>
|
|
|
|
<%=t "search.index.organization" %>
|
2016-07-26 18:59:37 +08:00
|
|
|
<%= render partial: "search/results/partials/organization_text.html.erb",
|
|
|
|
locals: { organization: experiment.project.organization } %>
|
2016-07-26 16:55:27 +08:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<% end %>
|