From 6bbe69aabf1a050e448064429216effa4034c375 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 4 Nov 2002 20:14:58 +0000 Subject: show_results(): Because of some html form peculiarities, especially on the membership management pages, the u/i for emergency moderation is changed. Now, if the list is not being moderated, no indication under the categories is made (we can change this if people want). To turn on emergency moderation, you need to go to the General category under Additional Settings. If you enable emergency moderation, you will get the big red sign, but no checkbox -- the sign will be linked to the VARHELP for the emergency option. --- Mailman/Cgi/admin.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'Mailman/Cgi/admin.py') diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 167a2f8ae..7b148feae 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -464,18 +464,13 @@ def show_results(mlist, doc, category, subcat, cgidata): # Add all the links to the links table... etable.AddRow([categorylinks_1, categorylinks_2]) etable.AddRowInfo(etable.GetCurrentRowIndex(), valign='top') - label = _('Emergency moderation of all list traffic:') - if mlist.emergency: - label = Bold(label).Format() - etable.AddRow([' ', ' ']) - etable.AddRow([Center(label + CheckBox('emergency', 1, - mlist.emergency).Format())]) if mlist.emergency: + label = _('Emergency moderation of all list traffic is enabled') + etable.AddRow([Center( + Link('?VARHELP=general/emergency', Bold(label)))]) color = mm_cfg.WEB_ERROR_COLOR - else: - color = mm_cfg.WEB_BG_COLOR - etable.AddCellInfo(etable.GetCurrentRowIndex(), 0, - colspan=2, bgcolor=color) + etable.AddCellInfo(etable.GetCurrentRowIndex(), 0, + colspan=2, bgcolor=color) linktable.AddRow([etable, otherlinks]) # ...and add the links table to the document. form.AddItem(linktable) -- cgit v1.2.3-70-g09d2