-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥗
Marketplace
: Woops, both Delivery
patches worked independently.…
….. (#1378) - #1325 I suppose this is why the "Prevent Merging unless Branch is Up To Date With Upstream" button is a thing... This should fix the main branch, but I'm curious about what people think about adding constraints to not allow merging branches that are behind main?
- Loading branch information
Showing
6 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
18 changes: 11 additions & 7 deletions
18
app/furniture/marketplace/cart/delivery_expectations_component.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
<%- if cart.marketplace.order_by.present? && cart.marketplace.delivery_window.present? %> | ||
Orders placed <%= cart.marketplace.order_by %> | ||
are delivered <%= cart.marketplace.delivery_window %> | ||
<%- elsif cart.marketplace.order_by.blank? && cart.marketplace.delivery_window.present? %> | ||
Orders are delivered <%= cart.marketplace.delivery_window %> | ||
<%- elsif cart.delivery_window.present? && cart.marketplace.order_by.present? %> | ||
Place orders <%= cart.marketplace.order_by %> to ensure an on-time delivery for <%= render(cart.delivery_window) %> | ||
<%- if order_by.present? && delivery_window.present? %> | ||
Orders placed <%= order_by %> | ||
are delivered <%= delivery_window %> | ||
<%- elsif order_by.blank? && delivery_window.present? %> | ||
Orders are delivered <%= delivery_window %> | ||
<%- elsif order_by.present? && delivery_window.blank? && cart.delivery_window.blank? %> | ||
Order <%= order_by %> | ||
<%- elsif cart.delivery_window.present? && order_by.present? %> | ||
Order <%= order_by %> to ensure an on-time delivery for <%= render(cart.delivery_window) %> | ||
<%- elsif cart.delivery_window.present? %> | ||
Delivering at <%= render(cart.delivery_window) %> | ||
<%- else %> | ||
Delivers at your chosen time | ||
<%- end %> |
7 changes: 5 additions & 2 deletions
7
app/furniture/marketplace/cart/delivery_expectations_component.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
delivery | ||
<%- if window.time_like? %> | ||
at <%= l(window.value, format: :day_month_date_hour_minute) %> | ||
<%= l(window.value, format: :day_month_date_hour_minute) %> | ||
<%- elsif window.blank? %> | ||
at your chosen time | ||
your chosen time | ||
<%- else %> | ||
for <%= window.value %> | ||
<%= window.value %> | ||
<%- end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters