diff options
| author | mailman | 1998-04-10 18:43:44 +0000 |
|---|---|---|
| committer | mailman | 1998-04-10 18:43:44 +0000 |
| commit | aaef08b35116aae8c20231862a2d69cdb408f9dc (patch) | |
| tree | e2f514f0bb8e578929e81c371779c5a18328b285 | |
| parent | 046d4b03384148665d31b5b4109eab3778dffc5c (diff) | |
| download | mailman-aaef08b35116aae8c20231862a2d69cdb408f9dc.tar.gz mailman-aaef08b35116aae8c20231862a2d69cdb408f9dc.tar.zst mailman-aaef08b35116aae8c20231862a2d69cdb408f9dc.zip | |
*** empty log message ***
| -rwxr-xr-x | cgi/admin | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -5,7 +5,7 @@ To run stand-alone for debugging, set env var PATH_INFO to name of list and, optionally, options category.""" -__version__ = "$Revision: 412 $" +__version__ = "$Revision: 414 $" import sys sys.path.append('/home/mailman/mailman/modules') @@ -127,11 +127,6 @@ def FormatAdminOverview(error=None): table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 0, colspan=2, bgcolor="#99ccff") - if error: - table.AddRow([Center(FontAttr(error, color="ff5060", size="+1"))]) - table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 0, - colspan=2) - advertised = [] names = mm_utils.list_names() names.sort() @@ -140,17 +135,23 @@ def FormatAdminOverview(error=None): l.Unlock() if l.advertised: advertised.append(l) + if error: + greeting = FontAttr(error, color="ff5060", size="+1") + else: + greeting = "Welcome!" + if not advertised: - welcome_items = ( - "Welcome!<p>" - " There currently are no publicly-advertised ", - Link(mm_cfg.MAILMAN_URL, "mailman"), - " maillists on %s." % mm_cfg.DEFAULT_HOST_NAME, - ) + welcome_items = (greeting, + "<p>" + " There currently are no publicly-advertised ", + Link(mm_cfg.MAILMAN_URL, "mailman"), + " maillists on %s." % mm_cfg.DEFAULT_HOST_NAME, + ) else: welcome_items = ( - "Welcome!<p>" + greeting, + "<p>" " Below is the collection of publicly-advertised ", Link(mm_cfg.MAILMAN_URL, "mailman"), " maillists on %s." % mm_cfg.DEFAULT_HOST_NAME, |
