From 45dac782ca854e6e393e2b872f2b2368ce1f5204 Mon Sep 17 00:00:00 2001 From: zmagod Date: Wed, 3 Aug 2016 16:09:45 +0200 Subject: [PATCH 1/5] update sidebar [fixes SCI-303] --- app/assets/stylesheets/partials/_sidebar.scss | 9 +++- .../stylesheets/partials/_tree_view.scss | 2 +- app/views/shared/_sidebar.html.erb | 18 ++++--- .../shared/sidebar/_experiments.html.erb | 37 ++++++++----- app/views/shared/sidebar/_my_modules.html.erb | 52 ++++++++----------- 5 files changed, 64 insertions(+), 54 deletions(-) diff --git a/app/assets/stylesheets/partials/_sidebar.scss b/app/assets/stylesheets/partials/_sidebar.scss index 202e9a2d7..759e5cd3e 100644 --- a/app/assets/stylesheets/partials/_sidebar.scss +++ b/app/assets/stylesheets/partials/_sidebar.scss @@ -37,6 +37,10 @@ $toggle-btn-size: 50px; #slide-panel { height: 100%; + .my-module-group-element{ + border-left: 1px dotted $color-emperor; + } + .sidebar-header { height: $toggle-btn-size; background: $color-theme-primary; @@ -53,7 +57,10 @@ $toggle-btn-size: 50px; overflow: hidden; text-overflow: ellipsis; opacity: 1; - + h5>a{ + color: $color-white; + text-decoration: none; + } // Animations @include transition(opacity 0.5s ease); } 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? %> + <% 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 4db6d6012..17283b1bf 100644 --- a/app/views/shared/sidebar/_experiments.html.erb +++ b/app/views/shared/sidebar/_experiments.html.erb @@ -1,22 +1,31 @@ \ 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 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 @@