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

10 lines
263 B
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% query ||= nil %>
<% text = query.present? ? highlight(report.name, query) : report.name %>
<% if can_view_reports(report.project) %>
<a href="<%= edit_project_report_path(report.project, report) %>">
<%= text %>
</a>
<% else %>
<%= text %>
<% end %>