scinote-web/app/views/search/results/partials/_report_text.html.erb
2016-07-21 13:11:15 +02:00

10 lines
No EOL
282 B
Text

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