Skip to content

Commit

Permalink
Convert test and shipment email templates to haml
Browse files Browse the repository at this point in the history
  • Loading branch information
luisramos0 committed Jul 14, 2020
1 parent 55f160c commit f66538d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
19 changes: 19 additions & 0 deletions app/views/spree/shipment_mailer/shipped_email.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
= Spree.t('shipment_mailer.shipped_email.dear_customer')

= Spree.t('shipment_mailer.shipped_email.instructions')

= "============================================================"
= Spree.t('shipment_mailer.shipped_email.shipment_summary')
= "============================================================"
- @shipment.manifest.each do |item|
= item.variant.sku
= item.variant.product.name
= item.variant.options_text
= "============================================================"

- if @shipment.tracking
= Spree.t('shipment_mailer.shipped_email.track_information', tracking: @shipment.tracking)
- if @shipment.tracking_url
= Spree.t('shipment_mailer.shipped_email.track_link', url: @shipment.tracking_url)

= Spree.t('shipment_mailer.shipped_email.thanks')
16 changes: 0 additions & 16 deletions app/views/spree/shipment_mailer/shipped_email.text.erb

This file was deleted.

4 changes: 4 additions & 0 deletions app/views/spree/test_mailer/test_email.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
= t('test_mailer.test_email.greeting')
= "================"

= t('test_mailer.test_email.message')
4 changes: 0 additions & 4 deletions app/views/spree/test_mailer/test_email.text.erb

This file was deleted.

0 comments on commit f66538d

Please sign in to comment.