<% results.each do |report| %>
<%= render partial: "search/results/partials/report_text.html.erb", locals: { report: report, query: search_query } %>

<%=t "search.index.description" %> <% if report.description.present? %> <%= highlight report.description, @search_query.strip.split(/\s+/) %> <% else %> <%=t "search.index.no_description" %> <% end %>
<%=t "search.index.created_by" %> <%= highlight report.user.full_name, @search_query.strip.split(/\s+/) %>
<%=t "search.index.created_at" %> <%=l report.created_at, format: :full %>
<%=t "search.index.last_modified_by" %> <%= highlight report.last_modified_by.full_name, @search_query.strip.split(/\s+/) %>
<%=t "search.index.last_modified_at" %> <%=l report.updated_at, format: :full %>

<%=t "search.index.project" %> <%= render partial: "search/results/partials/project_text.html.erb", locals: { project: report.project } %>
<%=t "search.index.organization" %> <%= render partial: "search/results/partials/organization_text.html.erb", locals: { organization: report.project.organization } %>


<% end %>