diff options
| author | mailman | 1998-04-10 18:43:32 +0000 |
|---|---|---|
| committer | mailman | 1998-04-10 18:43:32 +0000 |
| commit | 046d4b03384148665d31b5b4109eab3778dffc5c (patch) | |
| tree | 9f8c68eed0e6d2da91d00f7f534f9ff487ddcded /cgi/listinfo | |
| parent | 4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e (diff) | |
| download | mailman-046d4b03384148665d31b5b4109eab3778dffc5c.tar.gz mailman-046d4b03384148665d31b5b4109eab3778dffc5c.tar.zst mailman-046d4b03384148665d31b5b4109eab3778dffc5c.zip | |
One more refinement to the new overview function - better integrate
the notice about an unfound list with the greeting in the text.
Diffstat (limited to 'cgi/listinfo')
| -rwxr-xr-x | cgi/listinfo | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/cgi/listinfo b/cgi/listinfo index 8d12484e8..e8aee7ad0 100755 --- a/cgi/listinfo +++ b/cgi/listinfo @@ -4,7 +4,7 @@ Errors are redirected to logs/errors.""" -__version__ = "$Revision: 412 $" +__version__ = "$Revision: 413 $" # No lock needed in this script, because we don't change data. @@ -57,11 +57,6 @@ def FormatListinfoOverview(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() @@ -70,24 +65,29 @@ def FormatListinfoOverview(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, (' Click on a list name to visit the info page' - ' for that list. There you can learn about the list,' - ' enter a subscription to it, and find the list of' - ' subscribers.'), + ' for that list. There you can learn more about the list,' + ' subscribe to it, or find the roster of current subscribers.'), ) welcome_items = (welcome_items + |
