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

34 lines
1,003 B
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% results.each do |workflow| %>
<h5>
<span class="glyphicon glyphicon-random"></span>
2016-07-21 19:11:15 +08:00
<%= highlight workflow.name, search_query.strip.split(/\s+/) %>
2016-02-12 23:52:43 +08:00
</h5>
<p>
<span>
<%=t 'search.index.created_at' %>
2016-02-12 23:52:43 +08:00
<%=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>
2016-02-12 23:52:43 +08:00
<span>
<%=t 'search.index.project' %>
<%= render partial: 'search/results/partials/project_text.html.erb',
locals: { project: workflow.experiment.project, link_to_page: :show } %>
2016-02-12 23:52:43 +08:00
</span>
<br>
<span>
<%=t 'search.index.organization' %>
<%= render partial: 'search/results/partials/organization_text.html.erb',
locals: { organization: workflow.experiment.project.organization } %>
2016-02-12 23:52:43 +08:00
</span>
</p>
<hr>
<% end %>