2
0

Mailer header partial access cleanup (#32585)

This commit is contained in:
Matt Jankowski
2024-10-28 09:41:56 -04:00
committed by GitHub
parent b1d3c64525
commit 6f5eb22135
25 changed files with 98 additions and 30 deletions

View File

@@ -1,5 +1,8 @@
= content_for :heading do
= render 'application/mailer/heading', heading_title: t('notification_mailer.favourite.title'), heading_subtitle: t('notification_mailer.favourite.body', name: @account.pretty_acct), heading_image_url: frontend_asset_url('images/mailer-new/heading/favorite.png')
= render 'application/mailer/heading',
image_url: frontend_asset_url('images/mailer-new/heading/favorite.png'),
subtitle: t('notification_mailer.favourite.body', name: @account.pretty_acct),
title: t('notification_mailer.favourite.title')
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
%td.email-body-padding-td

View File

@@ -1,5 +1,8 @@
= content_for :heading do
= render 'application/mailer/heading', heading_title: t('notification_mailer.follow.title'), heading_subtitle: t('notification_mailer.follow.body', name: @account.pretty_acct), heading_image_url: frontend_asset_url('images/mailer-new/heading/user.png')
= render 'application/mailer/heading',
image_url: frontend_asset_url('images/mailer-new/heading/user.png'),
subtitle: t('notification_mailer.follow.body', name: @account.pretty_acct),
title: t('notification_mailer.follow.title')
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
%td.email-body-padding-td

View File

@@ -1,5 +1,8 @@
= content_for :heading do
= render 'application/mailer/heading', heading_title: t('notification_mailer.follow_request.title'), heading_subtitle: t('notification_mailer.follow_request.body', name: @account.pretty_acct), heading_image_url: frontend_asset_url('images/mailer-new/heading/follow.png')
= render 'application/mailer/heading',
image_url: frontend_asset_url('images/mailer-new/heading/follow.png'),
subtitle: t('notification_mailer.follow_request.body', name: @account.pretty_acct),
title: t('notification_mailer.follow_request.title')
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
%td.email-body-padding-td

View File

@@ -1,5 +1,8 @@
= content_for :heading do
= render 'application/mailer/heading', heading_title: t('notification_mailer.mention.title'), heading_subtitle: t('notification_mailer.mention.body', name: @status.account.pretty_acct), heading_image_url: frontend_asset_url('images/mailer-new/heading/mention.png')
= render 'application/mailer/heading',
image_url: frontend_asset_url('images/mailer-new/heading/mention.png'),
subtitle: t('notification_mailer.mention.body', name: @status.account.pretty_acct),
title: t('notification_mailer.mention.title')
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
%td.email-body-padding-td

View File

@@ -1,5 +1,8 @@
= content_for :heading do
= render 'application/mailer/heading', heading_title: t('notification_mailer.reblog.title'), heading_subtitle: t('notification_mailer.reblog.body', name: @account.pretty_acct), heading_image_url: frontend_asset_url('images/mailer-new/heading/boost.png')
= render 'application/mailer/heading',
image_url: frontend_asset_url('images/mailer-new/heading/boost.png'),
subtitle: t('notification_mailer.reblog.body', name: @account.pretty_acct),
title: t('notification_mailer.reblog.title')
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
%td.email-body-padding-td