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

9 lines
303 B
Text
Raw Normal View History

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