summaryrefslogtreecommitdiff
path: root/Mailman/Cgi
diff options
context:
space:
mode:
authorbwarsaw2002-11-04 20:14:58 +0000
committerbwarsaw2002-11-04 20:14:58 +0000
commit6bbe69aabf1a050e448064429216effa4034c375 (patch)
tree741a1cb7d49c1dc69f25b8bec8a9fdb24f8fafc7 /Mailman/Cgi
parent043eae85d29e1b8322fa385d44db25255437f550 (diff)
downloadmailman-6bbe69aabf1a050e448064429216effa4034c375.tar.gz
mailman-6bbe69aabf1a050e448064429216effa4034c375.tar.zst
mailman-6bbe69aabf1a050e448064429216effa4034c375.zip
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.
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r--Mailman/Cgi/admin.py15
1 files changed, 5 insertions, 10 deletions
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)