Add text templates counterparts for the bundle mailer

This commit is contained in:
Jorge Manrubia
2025-08-27 12:03:51 +02:00
parent 13d053d285
commit d9a19a85b1
6 changed files with 24 additions and 1 deletions
@@ -0,0 +1 @@
<%= notification.creator.name %>
@@ -0,0 +1 @@
#<%= notification.card.id %> | <%= notification.card.collection.name %>
@@ -0,0 +1,6 @@
================================================================================
[<%= notification.creator.name %>]
<%= render "notification/bundle_mailer/header", notification: notification %>
<%= render "notification/bundle_mailer/#{notification.source_type.underscore}/body", notification: notification %>
<%= render "notification/bundle_mailer/footer", notification: notification %>
@@ -0,0 +1,6 @@
<% event = notification.source %>
<%= event_notification_title(event) %>
<%= notification_url(notification.source) %>
<%= event_notification_body(event) %>
@@ -0,0 +1,6 @@
<% mention = notification.source %>
<%= mention.mentioner.first_name %> mentioned you
<%= notification_url(mention) %>
<%= mention.source.mentionable_content.truncate(200) %>
@@ -1 +1,4 @@
PENDING...
Everything since <%= @bundle.starts_at.strftime("%-l%P on %A, %B %-d") %>
You have <%= pluralize @notifications.count, "new notification" %>.
<%= render partial: "notification/bundle_mailer/notification", collection: @notifications, as: :notification %>