mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
19 lines
700 B
Text
19 lines
700 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>
|
|
<% if can_view_experiment(experiment) and can_restore_experiment(experiment.project) %>
|
|
<%= route_to_other_org root_path, experiment.project.organization, text %>
|
|
<% else %>
|
|
<%= text %>
|
|
<% end %>
|
|
<% else %>
|
|
<% if can_view_experiment(experiment) %>
|
|
<%= route_to_other_org canvas_experiment_path(experiment),
|
|
experiment.project.organization,
|
|
text %>
|
|
<% else %>
|
|
<%= text %>
|
|
<% end %>
|
|
<% end %>
|