<% if project.active_experiments.present? then %>
<% project.active_experiments.each do |experiment| %>
<% if experiment_page? && experiment == @experiment %>
-
<%= @experiment.name %>
<%= render partial: 'shared/sidebar/my_modules', locals: { experiment: @experiment } %>
<% else %>
-
<% 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 %>
<%= render partial: 'shared/sidebar/my_modules', locals: { experiment: experiment } %>
<% end %>
<% end %>
<% end %>