From b5ae2cb96027fc712e25d568e66386b40510f042 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sun, 2 May 1999 22:56:07 +0000 Subject: MailmanLogo(): New function to return Link object w/ Delivered by Mailman logo (or plain text). --- Mailman/htmlformat.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Mailman/htmlformat.py') diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index e5e509c06..bf2a497d7 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -475,3 +475,12 @@ class DefinitionList(Container): HTMLFormatObject(dd, indent+2)) output = output + '%s\n' % spaces return output + + +def MailmanLogo(): + if mm_cfg.DELIVERED_BY_URL: + img = ('Delivered by Mailman v %s' % + (mm_cfg.DELIVERED_BY_URL, mm_cfg.VERSION)) + else: + img = 'Delivered by Mailman v %s' % mm_cfg.VERSION + return Link(mm_cfg.MAILMAN_URL, img) -- cgit v1.2.3-70-g09d2