scinote-web/app/views/shared/sidebar/_experiments.html.erb

20 lines
780 B
Text
Raw Normal View History

<% if project.active_experiments.present? %>
2018-03-22 18:41:33 +08:00
<ul>
<% project.active_experiments.each do |experiment| %>
<% cache [action_name, current_user, experiment] do %>
<li data-parent="candidate">
2020-01-29 20:22:35 +08:00
<span class="tree-link line-wrap first-indent" title="<%= experiment.name %>">
<i class="no-arrow"></i>
<%= link_to experiment.name,
experiment_action_to_link_to(experiment),
2020-01-29 20:22:35 +08:00
class: 'overview_exp_label line-wrap',
data: { type: 'experiment', id: experiment.id }
%>
2016-08-03 22:09:45 +08:00
</span>
<%= render partial: 'shared/sidebar/my_modules', locals: { experiment: experiment } %>
</li>
<% end %>
2016-07-29 21:58:47 +08:00
<% end %>
2018-03-22 18:41:33 +08:00
</ul>
<% end %>