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

27 lines
752 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" %>
<%=l workflow.created_at, format: :full %>
</span>
<br>
<span>
<%=t "search.index.project" %>
2016-07-21 19:11:15 +08:00
<%= render partial: "search/results/partials/project_text.html.erb",
locals: { project: workflow.project, link_to_page: :canvas } %>
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.project.organization } %>
</span>
</p>
<hr>
<% end %>