2016-07-26 16:55:27 +08:00
|
|
|
<% results.each do |experiment| %>
|
|
|
|
<h5>
|
2018-03-30 23:03:44 +08:00
|
|
|
<i class="fas fa-flask"></i>
|
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",
|
2016-07-27 22:28:18 +08:00
|
|
|
locals: { project: experiment.project, link_to_page: :show } %>
|
2016-07-26 16:55:27 +08:00
|
|
|
</span>
|
|
|
|
<br>
|
2021-02-05 19:39:26 +08:00
|
|
|
<% if experiment.project.project_folder %>
|
|
|
|
<span>
|
|
|
|
<%=t "search.index.folder" %>
|
|
|
|
<%= render partial: "search/results/partials/project_folders_text.html.erb",
|
|
|
|
locals: { folder: experiment.project.project_folder } %>
|
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<% end %>
|
2016-07-26 16:55:27 +08:00
|
|
|
<span>
|
2017-01-25 19:01:23 +08:00
|
|
|
<%=t "search.index.team" %>
|
|
|
|
<%= render partial: "search/results/partials/team_text.html.erb",
|
|
|
|
locals: { team: experiment.project.team } %>
|
2016-07-26 16:55:27 +08:00
|
|
|
</span>
|
2018-06-07 20:29:40 +08:00
|
|
|
<span data-hook="search-result-experiment"></span>
|
2016-07-26 16:55:27 +08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<% end %>
|