[Mailman-Users] modify the html page of the moderator

Mark Sapiro mark at msapiro.net
Fri May 14 16:13:59 CEST 2010


Esteban Torres wrote:
>
>I can modify the html page of the moderator?
>
>I want it to appear above the logo of my company (that I found it in admindbsummary.html), but the options I want to just show moderator:
>Left:
>Defer, Accept, Discard, Reject
>Right:
>showing the information of the mail.
>
>This is for all emails, both members and non-members.


This page is built dynamically by Mailman/Cgi/admindb.py. The only
templates involved are the description at the top of the summary page
(admindbsummary.html), the description at the top of the detail page
(admindbpreamble.html) and the detailed instructions page
(admindbdetails.html) so in order to make the above changes other than
logo, you need to modify the code in that module.

Also, while it is possible to add your logo to those templates, a
better way to do this is to modify the Format() method of the Document
class defined in Mailman/htmlformat.py. There you can add a logo or
other HTML at the beginning and/or end of the BODY of the document and
also add style information or link to a style sheet in the HEAD, and
this will apply to all non-templated pages.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list