Skip to content

Commit

Permalink
WIP: Add citation promo to pro mailouts
Browse files Browse the repository at this point in the history
Adding only the HTML part to the theme seems to prevent the mail being
sent as multipart. IDK whether this is an issue with the rails previewer
not working well with our theme override, or whether this will also
happen in production with it stopping at the theme `embargo_mailer`
directory instead of falling back to the core one to get the text
version. If so, we'll just have to override the text template without
modification.

Obviously need to add the link to the blog post, and maybe tweak
phrasing / design of the banner.
  • Loading branch information
garethrees committed Jul 5, 2024
1 parent dac4aa5 commit 8fb1278
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/views/alaveteli_pro/embargo_mailer/expired_alert.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<p style="background:#fdf07a;border:2px solid #fdd906;padding:10px;">
<a href="">Tell us how you've used your requests</a> and get free Pro credit!
<p>

<%= simple_format(render(template: 'alaveteli_pro/embargo_mailer/expired_alert', formats: [:text])) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<p style="background:#fdf07a;border:2px solid #fdd906;padding:10px;">
<a href="">Tell us how you've used your requests</a> and get free Pro credit!
<p>

<%= simple_format(render(template: 'alaveteli_pro/embargo_mailer/expiring_alert', formats: [:text])) %>
5 changes: 5 additions & 0 deletions lib/views/notification_mailer/daily_summary.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<p style="background:#fdf07a;border:2px solid #fdd906;padding:10px;">
<a href="">Tell us how you've used your requests</a> and get free Pro credit!
<p>

<%= simple_format(render(template: 'notification_mailer/daily_summary', formats: [:text])) %>

0 comments on commit 8fb1278

Please sign in to comment.