Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Joakim Saario
aurweb
Commits
eeaa1c3a
Commit
eeaa1c3a
authored
Jan 04, 2020
by
Stephan Springer
Committed by
Lukas Fleischer
Jan 06, 2020
Browse files
Separate text from footer in notification emails
Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
58aa0a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
aurweb/scripts/notify.py
View file @
eeaa1c3a
...
...
@@ -151,7 +151,7 @@ class CommentNotification(Notification):
body
=
self
.
_l10n
.
translate
(
'{user} [1] added the following comment to {pkgbase} [2]:'
,
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
)
body
+=
self
.
_l10n
.
translate
(
'If you no longer wish to receive notifications about this '
...
...
@@ -196,7 +196,7 @@ class UpdateNotification(Notification):
'{pkgbase} [2].'
,
lang
).
format
(
user
=
self
.
_user
,
pkgbase
=
self
.
_pkgbase
)
body
+=
'
\n\n
'
body
+=
'
\n
\n
--
\n
'
dnlabel
=
self
.
_l10n
.
translate
(
'Disable notifications'
,
lang
)
body
+=
self
.
_l10n
.
translate
(
'If you no longer wish to receive notifications about this '
...
...
@@ -362,6 +362,7 @@ class DeleteNotification(Notification):
dnlabel
=
self
.
_l10n
.
translate
(
'Disable notifications'
,
lang
)
return
self
.
_l10n
.
translate
(
'{user} [1] merged {old} [2] into {new} [3].
\n\n
'
'--
\n
'
'If you no longer wish receive notifications about the '
'new package, please go to [3] and click "{label}".'
,
lang
).
format
(
user
=
self
.
_user
,
old
=
self
.
_old_pkgbase
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment