diff options
-rw-r--r-- | Mailman/Cgi/admindb.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index 6e8b58f8..75cc66a0 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -190,7 +190,8 @@ def main(): + ' <em>%s</em>' % mlist.real_name)) if details <> 'instructions': form.AddItem(Center(SubmitButton('submit', _('Submit All Data')))) - if not (details or sender or msgid): + nomessages = not mlist.GetHeldMessageIds() + if not (details or sender or msgid or nomessages): form.AddItem(Center( CheckBox('discardalldefersp', 0).Format() + ' ' + @@ -238,7 +239,7 @@ def main(): if addform: doc.AddItem(form) form.AddItem('<hr>') - if not (details or sender or msgid): + if not (details or sender or msgid or nomessages): form.AddItem(Center( CheckBox('discardalldefersp', 0).Format() + ' ' + @@ -382,6 +383,8 @@ def show_helds_overview(mlist, form): bysender = helds_by_sender(mlist) if not bysender: return 0 + form.AddItem('<hr>') + form.AddItem(Center(Header(2, _('Held Messages')))) # Add the by-sender overview tables admindburl = mlist.GetScriptURL('admindb', absolute=1) table = Table(border=0) |