diff --git a/app/views/shared/_sidebar.html.erb b/app/views/shared/_sidebar.html.erb
index b520315d9..cbb6942ed 100644
--- a/app/views/shared/_sidebar.html.erb
+++ b/app/views/shared/_sidebar.html.erb
@@ -23,7 +23,7 @@
<%= @project.name %>
<% end %>
- <%= render 'shared/sidebar_elements' %>
+ <%= render partial: 'shared/sidebar/experiments', locals: { project: @project } %>
diff --git a/app/views/shared/_sidebar_elements.html.erb b/app/views/shared/_sidebar_elements.html.erb
deleted file mode 100644
index 3f9514561..000000000
--- a/app/views/shared/_sidebar_elements.html.erb
+++ /dev/null
@@ -1,85 +0,0 @@
-
- <% if @project.active_experiments.present? then %>
- <% @project.active_experiments.each do |experiment| %>
- - ">
-
-
- <% if !experiment_page? %>
- <%= link_to experiment.name, experiment_action_to_link_to(experiment), title: experiment.name %>
- <% else %>
- <%= experiment.name %>
- <% end %>
-
- <% if experiment.active_modules.present? then %>
-
- <% experiment.active_module_groups.each do |my_module_group| %>
- -
-
-
-
- <%= my_module_group.name %>
-
- <% if is_canvas? %>
-
- <% end %>
-
- <% if my_module_group.my_modules.present? then %>
-
- <% my_module_group.my_modules.sort_by{|m| m.workflow_order}.each do |my_module| %>
- - " data-module-id="<%= my_module.id %>">
-
- <% if currently_active? my_module %>
- <%= my_module.name %>
- <% else %>
- <% if can_view_module(my_module) then %>
- <%= link_to my_module.name, module_action_to_link_to(my_module), class: "module-link" %>
- <% else %>
- <%= my_module.name %>
- <% end %>
- <% end %>
- <% if is_canvas? %>
-
- <% end %>
-
-
- <% end %>
-
- <% end %>
-
- <% end %>
- <% modules_without_group = experiment.modules_without_group %>
- <% if modules_without_group.present? then %>
- -
-
-
-
-
-
- <% modules_without_group.each do |my_module| %>
- - " data-module-id="<%= my_module.id %>">
-
- <% if currently_active? my_module %>
- <%= my_module.name %>
- <% else %>
- <%= link_to my_module.name, module_action_to_link_to(my_module) %>
- <% end %>
- <% if is_canvas? %>
-
- <% end %>
-
-
- <% end %>
-
-
- <% end %>
-
- <% end %>
-
- <% end %>
- <% end %>
- -
- <%= link_to new_project_experiment_path(@project), id: 'new-experiment', remote: true do %>
- <%= t('experiments.new.create') %>
- <% end %>
-
-
\ No newline at end of file
diff --git a/app/views/shared/sidebar/_experiments.html.erb b/app/views/shared/sidebar/_experiments.html.erb
new file mode 100644
index 000000000..4db6d6012
--- /dev/null
+++ b/app/views/shared/sidebar/_experiments.html.erb
@@ -0,0 +1,22 @@
+
+ <% if project.active_experiments.present? then %>
+ <% project.active_experiments.each do |experiment| %>
+ - ">
+
+
+ <% if !experiment_page? %>
+ <%= link_to experiment.name, experiment_action_to_link_to(experiment), title: experiment.name %>
+ <% else %>
+ <%= experiment.name %>
+ <% end %>
+
+ <%= render partial: 'shared/sidebar/my_modules', locals: { experiment: experiment } %>
+
+ <% end %>
+ <% end %>
+ -
+ <%= link_to new_project_experiment_path(project), id: 'new-experiment', remote: true do %>
+ <%= t('experiments.new.create') %>
+ <% end %>
+
+
\ No newline at end of file
diff --git a/app/views/shared/sidebar/_my_modules.html.erb b/app/views/shared/sidebar/_my_modules.html.erb
new file mode 100644
index 000000000..c5abf3112
--- /dev/null
+++ b/app/views/shared/sidebar/_my_modules.html.erb
@@ -0,0 +1,64 @@
+<% if experiment.active_modules.present? then %>
+
+ <% experiment.active_module_groups.each do |my_module_group| %>
+ -
+
+
+
+ <%= my_module_group.name %>
+
+ <% if is_canvas? %>
+
+ <% end %>
+
+ <% if my_module_group.my_modules.present? then %>
+
+ <% my_module_group.my_modules.sort_by{|m| m.workflow_order}.each do |my_module| %>
+ - " data-module-id="<%= my_module.id %>">
+
+ <% if currently_active? my_module %>
+ <%= my_module.name %>
+ <% else %>
+ <% if can_view_module(my_module) then %>
+ <%= link_to my_module.name, module_action_to_link_to(my_module), class: "module-link" %>
+ <% else %>
+ <%= my_module.name %>
+ <% end %>
+ <% end %>
+ <% if is_canvas? %>
+
+ <% end %>
+
+
+ <% end %>
+
+ <% end %>
+
+ <% end %>
+ <% modules_without_group = experiment.modules_without_group %>
+ <% if modules_without_group.present? then %>
+ -
+
+
+
+
+
+ <% modules_without_group.each do |my_module| %>
+ - " data-module-id="<%= my_module.id %>">
+
+ <% if currently_active? my_module %>
+ <%= my_module.name %>
+ <% else %>
+ <%= link_to my_module.name, module_action_to_link_to(my_module) %>
+ <% end %>
+ <% if is_canvas? %>
+
+ <% end %>
+
+
+ <% end %>
+
+
+ <% end %>
+
+<% end %>
\ No newline at end of file