diff options
| author | bwarsaw | 2001-05-31 15:59:34 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-05-31 15:59:34 +0000 |
| commit | 89fda99010b59053752c5cf965ea7a04fa876c15 (patch) | |
| tree | ddd9e709685089120f81ccc70eab90bc70527d88 | |
| parent | 20029d76b7eb81ffccd7312d588f500584900b15 (diff) | |
| download | mailman-89fda99010b59053752c5cf965ea7a04fa876c15.tar.gz mailman-89fda99010b59053752c5cf965ea7a04fa876c15.tar.zst mailman-89fda99010b59053752c5cf965ea7a04fa876c15.zip | |
| -rw-r--r-- | Mailman/HTMLFormatter.py | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index ac463dca1..5d47d475f 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -105,13 +105,13 @@ class HTMLFormatter: checked = ' CHECKED' else: checked = '' - name = {mm_cfg.DontReceiveOwnPosts : 'dontreceive', - mm_cfg.DisableDelivery : 'disablemail', - mm_cfg.DisableMime : 'mime', - mm_cfg.AcknowledgePosts : 'ackposts', - mm_cfg.Digests : 'digest', - mm_cfg.ConcealSubscription : 'conceal', - mm_cfg.SuppressPasswordReminder : 'passwdremind', + name = {mm_cfg.DontReceiveOwnPosts : 'dontreceive', + mm_cfg.DisableDelivery : 'disablemail', + mm_cfg.DisableMime : 'mime', + mm_cfg.AcknowledgePosts : 'ackposts', + mm_cfg.Digests : 'digest', + mm_cfg.ConcealSubscription : 'conceal', + mm_cfg.SuppressPasswordReminder : 'remind', }[type] return '<input type=radio name="%s" value="%d"%s>' % ( name, value, checked) @@ -125,22 +125,20 @@ class HTMLFormatter: def FormatDisabledNotice(self, user): if self.GetUserOption(user, mm_cfg.DisableDelivery): - text = Center(Header(3, _( - "Note - your list delivery is currently disabled."))).Format() - text = text + "\n" - text = text + _("You may have set non-delivery deliberately, or" - " it may have been triggered by bounces from your" - " delivery address. In either case, to reenable " - " delivery, change the ") - text = text + Link('#disable', - _("Disable mail delivery")).Format() - text = text + _(" option. Contact ") - text = text + Link('mailto:' + self.GetAdminEmail(), - _("your list administrator")).Format() - text = text + _(" if you have questions.") - return text + note = FontSize('+1', _( + 'Note: your list delivery is currently disabled.')).Format() + link = Link('#disable', _('Mail delivery')).Format() + mailto = Link('mailto:' + self.GetOwnerEmail(), + _('the list administrator')).Format() + return _('''<p>%(note)s + + <p>You may have disabled list delivery intentionally, + or it may have been triggered by bounces from your email + address. In either case, to re-enable delivery, change the + %(link)s option below. Contact %(mailto)s if you have any + questions or need assistance.''') else: - return "" + return '' def FormatUmbrellaNotice(self, user, type): addr = self.GetMemberAdminEmail(user) |
