mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
33 lines
1.2 KiB
Text
33 lines
1.2 KiB
Text
<ul>
|
|
<% if project.active_experiments.present? then %>
|
|
<% project.active_experiments.each do |experiment| %>
|
|
<% if (experiment_page? ||
|
|
sample_groups_page_experiment? ||
|
|
sample_types_page_expermient?) && experiment == @experiment %>
|
|
<li class="active" data-parent="candidate">
|
|
<span class="tree-link line-wrap">
|
|
<i></i>
|
|
<span title="<%= @experiment.name %>"><%= @experiment.name %></span>
|
|
</span>
|
|
<%= render partial: 'shared/sidebar/my_modules', locals: { experiment: @experiment } %>
|
|
</li>
|
|
<% else %>
|
|
<li data-parent="candidate">
|
|
<span class="tree-link line-wrap">
|
|
<i></i>
|
|
<% if can_view_experiment(experiment) %>
|
|
<%= link_to experiment.name,
|
|
experiment_action_to_link_to(experiment),
|
|
title: experiment.name,
|
|
class: 'overview_exp_label'
|
|
%>
|
|
<% else %>
|
|
<%= experiment.name %>
|
|
<% end %>
|
|
</span>
|
|
<%= render partial: 'shared/sidebar/my_modules', locals: { experiment: experiment } %>
|
|
</li>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
</ul>
|