mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
33 lines
1,003 B
Text
33 lines
1,003 B
Text
<% results.each do |workflow| %>
|
|
<h5>
|
|
<span class="glyphicon glyphicon-random"></span>
|
|
<%= highlight workflow.name, search_query.strip.split(/\s+/) %>
|
|
</h5>
|
|
|
|
<p>
|
|
<span>
|
|
<%=t 'search.index.created_at' %>
|
|
<%=l workflow.created_at, format: :full %>
|
|
</span>
|
|
<br>
|
|
<span>
|
|
<%=t 'search.index.experiment' %>
|
|
<%= render partial: 'search/results/partials/experiment_text.html.erb',
|
|
locals: { experiment: workflow.experiment } %>
|
|
</span>
|
|
<br>
|
|
<span>
|
|
<%=t 'search.index.project' %>
|
|
<%= render partial: 'search/results/partials/project_text.html.erb',
|
|
locals: { project: workflow.experiment.project, link_to_page: :show } %>
|
|
</span>
|
|
<br>
|
|
<span>
|
|
<%=t 'search.index.organization' %>
|
|
<%= render partial: 'search/results/partials/organization_text.html.erb',
|
|
locals: { organization: workflow.experiment.project.organization } %>
|
|
</span>
|
|
</p>
|
|
|
|
<hr>
|
|
<% end %>
|