scinote-web/app/views/search/results/partials/_report_text.html.erb

11 lines
353 B
Plaintext
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% query ||= nil %>
2016-07-21 19:11:15 +08:00
<% text = query.present? ? highlight(report.name, query.strip.split(/\s+/)) : report.name %>
2016-02-12 23:52:43 +08:00
<% if can_view_reports(report.project) %>
2016-10-11 22:16:48 +08:00
<%= route_to_other_org edit_project_report_path(report.project, report),
report.project.organization,
text %>
2016-02-12 23:52:43 +08:00
<% else %>
<%= text %>
2016-10-11 22:16:48 +08:00
<% end %>