mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Separate text from footer in notification emails
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
58aa0a9e45
commit
eeaa1c3a32
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||||
'{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):
|
||||||
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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue