mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Grey out inactive distributors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user