mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 12:34:58 +01:00
Use partial collection render for welcome mailer features (#29843)
This commit is contained in:
parent
191bf5876e
commit
601834d746
@ -4,7 +4,7 @@
|
|||||||
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
|
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
|
||||||
%tr
|
%tr
|
||||||
%td.email-feature-td
|
%td.email-feature-td
|
||||||
.email-desktop-flex{ class: ('email-dir-rtl' if defined?(text_first_on_desktop) && !text_first_on_desktop) }
|
.email-desktop-flex{ class: ('email-dir-rtl' if feature_iteration.index.odd?) }
|
||||||
/[if mso]
|
/[if mso]
|
||||||
<table border="0" cellpadding="0" cellspacing="0" align="center" style="width:100%;" role="presentation"><tr><td style="width:50%; vertical-align:top;">
|
<table border="0" cellpadding="0" cellspacing="0" align="center" style="width:100%;" role="presentation"><tr><td style="width:50%; vertical-align:top;">
|
||||||
.email-desktop-column
|
.email-desktop-column
|
||||||
@ -24,7 +24,7 @@
|
|||||||
%tr
|
%tr
|
||||||
%td.email-column-td
|
%td.email-column-td
|
||||||
- if defined?(feature)
|
- if defined?(feature)
|
||||||
%p{ class: ('email-desktop-text-right' if defined?(text_first_on_desktop) && text_first_on_desktop) }
|
%p{ class: ('email-desktop-text-right' if feature_iteration.index.even?) }
|
||||||
= image_tag frontend_asset_url("images/mailer-new/welcome/feature_#{feature}.png"), alt: '', width: 240, height: 230
|
= image_tag frontend_asset_url("images/mailer-new/welcome/feature_#{feature}.png"), alt: '', width: 240, height: 230
|
||||||
/[if mso]
|
/[if mso]
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
|
@ -68,7 +68,4 @@
|
|||||||
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
|
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
|
||||||
%tr
|
%tr
|
||||||
%td.email-extra-td
|
%td.email-extra-td
|
||||||
= render 'application/mailer/feature', feature: 'control', text_first_on_desktop: true
|
= render partial: 'application/mailer/feature', collection: %w(control audience moderation creativity)
|
||||||
= render 'application/mailer/feature', feature: 'audience', text_first_on_desktop: false
|
|
||||||
= render 'application/mailer/feature', feature: 'moderation', text_first_on_desktop: true
|
|
||||||
= render 'application/mailer/feature', feature: 'creativity', text_first_on_desktop: false
|
|
||||||
|
Loading…
Reference in New Issue
Block a user