mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
11 lines
412 B
Text
11 lines
412 B
Text
<% query ||= nil %>
|
|
<% text = query.present? ? highlight(experiment.name, query.strip.split(/\s+/)) : experiment.name %>
|
|
|
|
<% if experiment.archived? %>
|
|
<span class="label label-warning"><%= t('search.index.archived') %></span>
|
|
<% end %>
|
|
<% if can_read_experiment?(experiment) %>
|
|
<%= route_to_other_team(canvas_experiment_path(experiment), experiment.project.team, text) %>
|
|
<% else %>
|
|
<%= text %>
|
|
<% end %>
|