mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
8 lines
303 B
Text
8 lines
303 B
Text
<% 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 %>
|