diff options
Diffstat (limited to 'Mailman/HTMLFormatter.py')
| -rw-r--r-- | Mailman/HTMLFormatter.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index 33f3aca38..5e1aefe83 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -56,21 +56,27 @@ class HTMLFormatter: else: concealed = "" - def FormatOneUser(person, me=self): + def FormatOneUser(person, me=self, disdel=mm_cfg.DisableDelivery): import htmlformat, os id = mm_utils.ObscureEmail(person) if me.obscure_addresses: showing = mm_utils.ObscureEmail(person, for_text=1) else: showing = person - return htmlformat.Link(os.path.join(me.GetScriptURL('options'), - id), showing) + got = htmlformat.Link(os.path.join(me.GetScriptURL('options'), + id), showing) + if me.GetUserOption(person, disdel): + got = htmlformat.Italic("(", + got, + ")") + return got items = map(FormatOneUser, people) # Just return the .Format() so this works until I finish # converting everything to htmlformat... return (concealed + apply(htmlformat.UnorderedList, tuple(items)).Format()) + def FormatOptionButton(self, type, value, user): users_val = self.GetUserOption(user, type) if users_val == value: |
