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