scinote-web/app/views/search/results/_projects.html.erb
2017-01-25 12:01:23 +01:00

22 lines
598 B
Text

<% results.each do |project| %>
<h5>
<span class="glyphicon glyphicon-blackboard"></span>
<%= render partial: 'search/results/partials/project_text.html.erb',
locals: { project: project, query: search_query, link_to_page: :show } %>
</h5>
<p>
<span>
<%=t 'search.index.created_at' %>
<%=l project.created_at, format: :full %>
</span>
<br>
<span>
<%=t 'search.index.team' %>
<%= render partial: 'search/results/partials/team_text.html.erb',
locals: { team: project.team } %>
</span>
</p>
<hr>
<% end %>