diff --git a/app/assets/stylesheets/partials/_sidebar.scss b/app/assets/stylesheets/partials/_sidebar.scss
index 202e9a2d7..716525173 100644
--- a/app/assets/stylesheets/partials/_sidebar.scss
+++ b/app/assets/stylesheets/partials/_sidebar.scss
@@ -133,6 +133,14 @@ $toggle-btn-size: 50px;
}
}
+.my-module-group-element::before {
+ border-left: 1px dotted $color-emperor;
+ bottom: 20px;
+ content: "";
+ position: absolute;
+ top: 25px;
+}
+
#wrapper {
@include sidebar-shown;
}
diff --git a/app/assets/stylesheets/partials/_tree_view.scss b/app/assets/stylesheets/partials/_tree_view.scss
index 6748248b1..0b9a4c392 100644
--- a/app/assets/stylesheets/partials/_tree_view.scss
+++ b/app/assets/stylesheets/partials/_tree_view.scss
@@ -30,7 +30,7 @@
}
&.leaf {
- padding-left: 30px;
+ padding-left: 10px;
.tree-link::before {
content: "\25B8";
}
diff --git a/app/views/shared/_sidebar.html.erb b/app/views/shared/_sidebar.html.erb
index 50443ec0b..21d52d34d 100644
--- a/app/views/shared/_sidebar.html.erb
+++ b/app/views/shared/_sidebar.html.erb
@@ -13,19 +13,23 @@
+ <% if !project_page? %>
- - ">
+
-
- <% if !project_page? %>
- <%= link_to @project.name, project_action_to_link_to(@project), title: @project.name %>
- <% else %>
- <%= @project.name %>
- <% end %>
+ <%= link_to @project.name,
+ project_action_to_link_to(@project),
+ title: @project.name %>
- <%= render partial: 'shared/sidebar/experiments', locals: { project: @project } %>
+ <%= render partial: 'shared/sidebar/experiments',
+ locals: { project: @project } %>
+ <% else %>
+ <%= render partial: 'shared/sidebar/experiments',
+ locals: { project: @project } %>
+ <% end %>
<% end %>
diff --git a/app/views/shared/sidebar/_experiments.html.erb b/app/views/shared/sidebar/_experiments.html.erb
index bdea4c25c..17283b1bf 100644
--- a/app/views/shared/sidebar/_experiments.html.erb
+++ b/app/views/shared/sidebar/_experiments.html.erb
@@ -1,17 +1,31 @@
<% if project.active_experiments.present? then %>
- <% project.active_experiments.each do |experiment| %>
- - ">
+ <% if experiment_page? %>
+
-
- <% if !experiment_page? %>
- <%= link_to experiment.name, experiment_action_to_link_to(experiment), title: experiment.name %>
- <% else %>
- <%= experiment.name %>
- <% end %>
+ <%= @experiment.name %>
- <%= render partial: 'shared/sidebar/my_modules', locals: { experiment: experiment } %>
+ <%= 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 %>
diff --git a/app/views/shared/sidebar/_my_modules.html.erb b/app/views/shared/sidebar/_my_modules.html.erb
index c5abf3112..9ffe999e5 100644
--- a/app/views/shared/sidebar/_my_modules.html.erb
+++ b/app/views/shared/sidebar/_my_modules.html.erb
@@ -2,35 +2,28 @@
<% 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_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 %>
- <% end %>
- <% if is_canvas? %>
-
- <% end %>
-
-
- <% end %>
+ <% if is_canvas? %>
+
+ <% end %>
+
+
+ <% end %>
+
<% end %>
@@ -38,13 +31,10 @@
<% 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 %>">
+
- "
+ data-module-id="<%= my_module.id %>">
<% if currently_active? my_module %>
<%= my_module.name %>
@@ -61,4 +51,4 @@
<% end %>
-<% end %>
\ No newline at end of file
+<% end %>