Commit eeaa1c3a authored by Stephan Springer's avatar Stephan Springer Committed by Lukas Fleischer
Browse files

Separate text from footer in notification emails



Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 58aa0a9e
...@@ -151,7 +151,7 @@ class CommentNotification(Notification): ...@@ -151,7 +151,7 @@ class CommentNotification(Notification):
body = self._l10n.translate( body = self._l10n.translate(
'{user} [1] added the following comment to {pkgbase} [2]:', '{user} [1] added the following comment to {pkgbase} [2]:',
lang).format(user=self._user, pkgbase=self._pkgbase) lang).format(user=self._user, pkgbase=self._pkgbase)
body += '\n\n' + self._text + '\n\n' body += '\n\n' + self._text + '\n\n-- \n'
dnlabel = self._l10n.translate('Disable notifications', lang) dnlabel = self._l10n.translate('Disable notifications', lang)
body += self._l10n.translate( body += self._l10n.translate(
'If you no longer wish to receive notifications about this ' 'If you no longer wish to receive notifications about this '
...@@ -196,7 +196,7 @@ class UpdateNotification(Notification): ...@@ -196,7 +196,7 @@ class UpdateNotification(Notification):
'{pkgbase} [2].', lang).format( '{pkgbase} [2].', lang).format(
user=self._user, user=self._user,
pkgbase=self._pkgbase) pkgbase=self._pkgbase)
body += '\n\n' body += '\n\n-- \n'
dnlabel = self._l10n.translate('Disable notifications', lang) dnlabel = self._l10n.translate('Disable notifications', lang)
body += self._l10n.translate( body += self._l10n.translate(
'If you no longer wish to receive notifications about this ' 'If you no longer wish to receive notifications about this '
...@@ -362,6 +362,7 @@ class DeleteNotification(Notification): ...@@ -362,6 +362,7 @@ class DeleteNotification(Notification):
dnlabel = self._l10n.translate('Disable notifications', lang) dnlabel = self._l10n.translate('Disable notifications', lang)
return self._l10n.translate( return self._l10n.translate(
'{user} [1] merged {old} [2] into {new} [3].\n\n' '{user} [1] merged {old} [2] into {new} [3].\n\n'
'-- \n'
'If you no longer wish receive notifications about the ' 'If you no longer wish receive notifications about the '
'new package, please go to [3] and click "{label}".', 'new package, please go to [3] and click "{label}".',
lang).format(user=self._user, old=self._old_pkgbase, lang).format(user=self._user, old=self._old_pkgbase,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment