mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
21 lines
981 B
Text
21 lines
981 B
Text
<% if project.active_experiments.present? %>
|
|
<ul class="tree-child hidden" data-branch-id="pro<%= project.id %>">
|
|
<% project.sorted_active_experiments('atoz').preload(:active_my_modules).each do |experiment| %>
|
|
<% cache [action_name, current_user, experiment] do %>
|
|
<li data-parent="candidate" class="branch">
|
|
<span class="tree-link first-indent" title="<%= experiment.name %>">
|
|
<% if experiment.active_my_modules.any? %>
|
|
<i class="fas fa-caret-right tree-toggle"></i>
|
|
<% end %>
|
|
<%= link_to experiment.name,
|
|
experiment_action_to_link_to(experiment),
|
|
class: 'overview_exp_label line-wrap',
|
|
data: { type: 'experiment', id: experiment.id }
|
|
%>
|
|
</span>
|
|
<%= render partial: 'shared/sidebar/my_modules', locals: { experiment: experiment } %>
|
|
</li>
|
|
<% end %>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|