scinote-web/app/views/search/results/_workflows.html.erb
2016-07-28 13:29:26 +02:00

25 lines
711 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.project" %>
<%= render partial: "search/results/partials/project_text.html.erb", locals: { project: workflow.project } %>
</span>
<br>
<span>
<%=t "search.index.organization" %>
<%= render partial: "search/results/partials/organization_text.html.erb", locals: { organization: workflow.project.organization } %>
</span>
</p>
<hr>
<% end %>