Skip to content

Commit d2173b4

Browse files
committed
update admindb
1 parent 0be6e5b commit d2173b4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Mailman/Cgi/admindb.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,16 @@ def process_form(mlist, doc, cgidata):
785785
doc.AddItem(Header(2, title))
786786

787787
# Check if there are any pending requests
788+
admindburl = mlist.GetScriptURL('admindb', absolute=1)
788789
if not mlist.NumRequestsPending():
789790
doc.AddItem(_('There are no pending requests.'))
790791
doc.AddItem(' ')
791-
admindburl = mlist.GetScriptURL('admindb', absolute=1)
792792
doc.AddItem(Link(admindburl, _('Click here to reload this page.')))
793+
# Put 'Logout' link before the footer
794+
doc.AddItem('\n<div align="right"><font size="+2">')
795+
doc.AddItem(Link('%s/logout' % admindburl,
796+
'<b>%s</b>' % _('Logout')))
797+
doc.AddItem('</font></div>\n')
793798
# Add the footer
794799
doc.AddItem(mlist.GetMailmanFooter())
795800
return

0 commit comments

Comments
 (0)