summaryrefslogtreecommitdiff
path: root/Mailman/HTMLFormatter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/HTMLFormatter.py')
-rw-r--r--Mailman/HTMLFormatter.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py
index 210785f4f..7c4e13c5c 100644
--- a/Mailman/HTMLFormatter.py
+++ b/Mailman/HTMLFormatter.py
@@ -44,9 +44,13 @@ class HTMLFormatter:
owners_html.AddItem(', ')
# Remove the .Format() when htmlformat conversion is done.
- img = Link(mm_cfg.MAILMAN_URL,
- '<img src="%s" alt="Delivered by Mailman" border=0> v %s' %
- (mm_cfg.DELIVERED_BY_URL, mm_cfg.VERSION))
+ if mm_cfg.DELIVERED_BY_URL:
+ img = Link(mm_cfg.MAILMAN_URL,
+ '<img src="%s" alt="Delivered by Mailman" border=0>'
+ ' v %s' %
+ (mm_cfg.DELIVERED_BY_URL, mm_cfg.VERSION))
+ else:
+ img = 'Delivered by Mailman v %s' % mm_cfg.VERSION
return Container(
'<hr>',
Address(