From 34b694666c67524f7843d3fee57cd62b50d360a2 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 26 Jun 2012 08:24:32 +1000 Subject: [PATCH] Grey out inactive distributors --- app/assets/stylesheets/store/openfoodweb.css.scss | 9 +++++++-- app/views/spree/products/_source_sidebar.html.haml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/store/openfoodweb.css.scss b/app/assets/stylesheets/store/openfoodweb.css.scss index dcd897452d..fb15ace817 100644 --- a/app/assets/stylesheets/store/openfoodweb.css.scss +++ b/app/assets/stylesheets/store/openfoodweb.css.scss @@ -33,8 +33,13 @@ nav#filters { margin-bottom: 20px; list-style: disc outside; - li a { - font-size: $main_navigation_font_size; + li { + a { + font-size: $main_navigation_font_size; + } + span.inactive { + color: #999; + } } } } diff --git a/app/views/spree/products/_source_sidebar.html.haml b/app/views/spree/products/_source_sidebar.html.haml index 3d82eb355e..2ee2e7da7a 100644 --- a/app/views/spree/products/_source_sidebar.html.haml +++ b/app/views/spree/products/_source_sidebar.html.haml @@ -14,6 +14,6 @@ - elsif order.distributor == distributor = link_to distributor.name, root_path - else - = distributor.name + %span.inactive= distributor.name - if current_distributor && order.can_change_distributor? %li.nowrap= link_to 'Leave distributor', deselect_distributors_path