scinote-web/app/views/search/results/partials/_report_text.html.erb
2016-10-17 15:10:26 +02:00

11 lines
353 B
Plaintext

<% query ||= nil %>
<% text = query.present? ? highlight(report.name, query.strip.split(/\s+/)) : report.name %>
<% if can_view_reports(report.project) %>
<%= route_to_other_org edit_project_report_path(report.project, report),
report.project.organization,
text %>
<% else %>
<%= text %>
<% end %>