% query ||= nil %>
<% text = query.present? ? highlight(experiment.name, query.strip.split(/\s+/)) : experiment.name %>
<% if experiment.archived? %>
<%=t "search.index.archived" %>
<% if can_view_experiment(experiment) and can_restore_experiment(experiment.project) %>
<%= text %>
<% else %>
<%= text %>
<% end %>
<% else %>
<% if can_view_experiment(experiment) %>
<%= text %>
<% else %>
<%= text %>
<% end %>
<% end %>