From a5482c269f6ca18ead3bf5fe0c510b7f2f465671 Mon Sep 17 00:00:00 2001 From: Rick Giner Date: Sun, 24 May 2015 09:52:34 +1000 Subject: [PATCH] #541 Fixed issue of showing negative 'more' numbers, and only working for current Hub --- .../stylesheets/darkswarm/hub_node.css.sass | 34 ++++++++++--------- app/views/home/_fat.html.haml | 2 +- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/app/assets/stylesheets/darkswarm/hub_node.css.sass b/app/assets/stylesheets/darkswarm/hub_node.css.sass index dfe4d42074..94950fa22c 100644 --- a/app/assets/stylesheets/darkswarm/hub_node.css.sass +++ b/app/assets/stylesheets/darkswarm/hub_node.css.sass @@ -65,6 +65,24 @@ .active_table_row:nth-child(2) padding-bottom: 0.75rem + + .producers-list + li.more-producers-link + .less + display: none + a:hover + text-decoration: underline + li.additional-producer + display: none + &.show-more-producers + li.additional-producer + display: block + li.more-producers-link + .more + display: none + .less + display: block + //CURRENT hub (shows selected hub) &.current //overwrites active_table @@ -83,22 +101,6 @@ .active_table_row:first-child .skinny-head background-color: rgba(255,255,255,0.85) - .producers-list - li.more-producers-link - .less - display: none - a:hover - text-decoration: underline - li.additional-producer - display: none - &.show-more-producers - li.additional-producer - display: block - li.more-producers-link - .more - display: none - .less - display: block //INACTIVE - closed hub &.inactive diff --git a/app/views/home/_fat.html.haml b/app/views/home/_fat.html.haml index 092d9e898d..a5543fa2a3 100644 --- a/app/views/home/_fat.html.haml +++ b/app/views/home/_fat.html.haml @@ -26,7 +26,7 @@ %enterprise-modal %i.ofn-i_036-producers %span{"bo-text" => "enterprise.name"} - %li{"data-is-link" => "true", "class" => "more-producers-link"} + %li{"data-is-link" => "true", "class" => "more-producers-link", "bo-show" => "hub.producers.length>7"} %a{"ng-click" => "toggleMoreProducers=!toggleMoreProducers"} .more +