Skip to content
Permalink
Browse files

Update new tournament mailer to break lines in content

  • Loading branch information...
yumoose committed Jun 13, 2019
1 parent fda6d85 commit 697b12f2ca854e660be151c799c510b1b7686861
@@ -99,7 +99,7 @@ mailer:
subtitle: "You're up against %{opponent} in %{league_name}"
content: |
Through a rigorous amount of simulation and testing we've determined that you have about %{win_chance}% chance of winning against %{opponent}.
Note; simluations and tests are totally BS. This number is based on current systematic rating and has nothing to do with the price of fish.
Note; simluations and tests are competely fictitious. This number is based on current systematic rating and has nothing to do with the price of fish.
action: "View Tournament"

password_reset:
@@ -7,8 +7,9 @@ table.container style="border-spacing: 0; border-collapse: collapse; padding: 0;
= I18n.translate("mailer.tournament_match.subtitle", { opponent: opponent.tag, league_name: league.name })
tr.section style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left"
td.content style="text-align: left; word-wrap: break-word; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse; line-height: 1.3; vertical-align: top; -webkit-hyphens: auto; color: white; font-family: Helvetica, Arial, sans-serif; font-weight: normal; margin: 0; Margin: 0; font-size: 16px; padding: 16px;" valign="top" align="left"
p style="padding: 0; margin: 0; color: white; margin-bottom: 10px; font-weight: normal; Margin: 0; text-align: left; line-height: 1.3; font-size: 16px; Margin-bottom: 10px; font-family: 'Muli', 'Helvetica Neue', Helvetica, Arial, sans-serif;"
= I18n.translate("mailer.tournament_match.content", { opponent: opponent.tag, win_chance: win_chance })
- I18n.translate("mailer.tournament_match.content", { opponent: opponent.tag, win_chance: win_chance }).split("\n").each do |content_paragraph|
p style="padding: 0; margin: 0; color: white; margin-bottom: 10px; font-weight: normal; Margin: 0; text-align: left; line-height: 1.3; font-size: 16px; Margin-bottom: 10px; font-family: 'Muli', 'Helvetica Neue', Helvetica, Arial, sans-serif;"
= content_paragraph

table.button.radius style="border-spacing: 0; border-collapse: collapse; padding: 0; vertical-align: top; text-align: left; width: auto; margin: 0 0 16px 0; Margin: 0 0 16px 0;" valign="top" align="left"
tr style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left"
@@ -2,6 +2,8 @@
<%= "-" * I18n.translate("mailer.tournament_match.title").size %>
<%= I18n.translate("mailer.tournament_match.subtitle", { opponent: opponent.tag, league_name: league.name }) %>

<%= I18n.translate("mailer.tournament_match.content", { opponent: opponent.tag, win_chance: win_chance }) %>
<% I18n.translate("mailer.tournament_match.content", { opponent: opponent.tag, win_chance: win_chance }).split("\n").each do |content_paragraph| %>
<%= content_paragraph %>
<% end %>

<%= ENV["BASE_URL"] %>/leagues/<%= league.id %>/tournaments/<%= tournament.id %>

0 comments on commit 697b12f

Please sign in to comment.
You can’t perform that action at this time.