#541 Fixed issue of showing negative 'more' numbers, and only working for current Hub

This commit is contained in:
Rick Giner
2015-05-24 09:52:34 +10:00
parent 62ae38372e
commit a5482c269f
2 changed files with 19 additions and 17 deletions

View File

@@ -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

View File

@@ -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
+