mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Convert test and shipment email templates to haml
This commit is contained in:
19
app/views/spree/shipment_mailer/shipped_email.html.haml
Normal file
19
app/views/spree/shipment_mailer/shipped_email.html.haml
Normal file
@@ -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')
|
||||
@@ -1,16 +0,0 @@
|
||||
<%= 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 %>
|
||||
<% end %>
|
||||
============================================================
|
||||
|
||||
<%= Spree.t('shipment_mailer.shipped_email.track_information', :tracking => @shipment.tracking) if @shipment.tracking %>
|
||||
<%= Spree.t('shipment_mailer.shipped_email.track_link', :url => @shipment.tracking_url) if @shipment.tracking_url %>
|
||||
|
||||
<%= Spree.t('shipment_mailer.shipped_email.thanks') %>
|
||||
4
app/views/spree/test_mailer/test_email.html.haml
Normal file
4
app/views/spree/test_mailer/test_email.html.haml
Normal file
@@ -0,0 +1,4 @@
|
||||
= t('test_mailer.test_email.greeting')
|
||||
= "================"
|
||||
|
||||
= t('test_mailer.test_email.message')
|
||||
@@ -1,4 +0,0 @@
|
||||
<%= t('test_mailer.test_email.greeting') %>
|
||||
================
|
||||
|
||||
<%= t('test_mailer.test_email.message') %>
|
||||
Reference in New Issue
Block a user