2016-07-29 21:58:47 +08:00
|
|
|
<ul>
|
|
|
|
<% if project.active_experiments.present? then %>
|
2016-08-03 22:09:45 +08:00
|
|
|
<% if experiment_page? %>
|
2016-08-17 17:21:48 +08:00
|
|
|
<li class="active">
|
2016-07-29 21:58:47 +08:00
|
|
|
<span class="tree-link line-wrap">
|
|
|
|
<i></i>
|
2016-08-03 22:09:45 +08:00
|
|
|
<span title="<%= @experiment.name %>"><%= @experiment.name %></span>
|
2016-07-29 21:58:47 +08:00
|
|
|
</span>
|
2016-08-03 22:09:45 +08:00
|
|
|
<%= render partial: 'shared/sidebar/my_modules', locals: { experiment: @experiment } %>
|
2016-07-29 21:58:47 +08:00
|
|
|
</li>
|
2016-08-03 22:09:45 +08:00
|
|
|
<% else %>
|
|
|
|
<% project.active_experiments.each do |experiment| %>
|
|
|
|
<li>
|
|
|
|
<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 %>
|
2016-07-29 21:58:47 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2016-08-03 22:09:45 +08:00
|
|
|
</ul>
|