mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove duplicate conditionals already present in ShopHelper#shop_tabs, when these partials are rendered, these conditions will always be true
In the shops partial, by adding the else, we avoid rendering empty space with an empty products list in case the shop is closed
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
- if no_open_order_cycles?
|
||||
= render partial: "shop/closed_shop"
|
||||
|
||||
- elsif current_distributor.preferred_shopfront_message.present?
|
||||
- else
|
||||
.content
|
||||
.row
|
||||
.small-12.columns
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
- if no_open_order_cycles?
|
||||
= render partial: "shop/closed_shop"
|
||||
|
||||
- unless require_customer?
|
||||
- else
|
||||
.row
|
||||
.small-12.columns
|
||||
= render partial: "shop/products/form"
|
||||
|
||||
Reference in New Issue
Block a user