From ed2226c14bfcb9a2a34f0e2313a06786950f877e Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Fri, 29 Jul 2016 15:58:47 +0200 Subject: [PATCH] Refactor sidebar --- app/views/shared/_sidebar.html.erb | 2 +- app/views/shared/_sidebar_elements.html.erb | 85 ------------------- .../shared/sidebar/_experiments.html.erb | 22 +++++ app/views/shared/sidebar/_my_modules.html.erb | 64 ++++++++++++++ 4 files changed, 87 insertions(+), 86 deletions(-) delete mode 100644 app/views/shared/_sidebar_elements.html.erb create mode 100644 app/views/shared/sidebar/_experiments.html.erb create mode 100644 app/views/shared/sidebar/_my_modules.html.erb 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 @@ - \ 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 @@ + \ 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 %> + +<% end %> \ No newline at end of file