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

10 lines
348 B
Text

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