Created
May 22, 2013 11:46
-
-
Save tota/5626967 to your computer and use it in GitHub Desktop.
- Emphasize errors in Mailman 2.1.14.j7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Mailman/Cgi/admin.py.orig 2011-12-11 16:56:23.000000000 +0900 | |
+++ Mailman/Cgi/admin.py 2013-05-22 20:30:30.000000000 +0900 | |
@@ -1436,9 +1436,13 @@ | |
doc.AddItem('<p>') | |
if subscribe_errors: | |
if subscribe_or_invite: | |
- doc.AddItem(Header(5, _('Error inviting:'))) | |
+ doc.AddItem(Header(3, Bold(FontAttr( | |
+ _('Error inviting:'), | |
+ color='#ff0000', size='+2')).Format())) | |
else: | |
- doc.AddItem(Header(5, _('Error subscribing:'))) | |
+ doc.AddItem(Header(3, Bold(FontAttr( | |
+ _('Error subscribing:'), | |
+ color='#ff0000', size='+2')).Format())) | |
items = ['%s -- %s' % (x0, x1) for x0, x1 in subscribe_errors] | |
doc.AddItem(UnorderedList(*items)) | |
doc.AddItem('<p>') | |
@@ -1568,7 +1572,9 @@ | |
doc.AddItem(UnorderedList(*removes)) | |
doc.AddItem('<p>') | |
if errors: | |
- doc.AddItem(Header(5, _("Error Unsubscribing:"))) | |
+ doc.AddItem(Header(3, Bold(FontAttr( | |
+ _('Error Unsubscribing:'), | |
+ color='#ff0000', size='+2')).Format())) | |
items = ['%s -- %s' % (x[0], x[1]) for x in errors] | |
doc.AddItem(apply(UnorderedList, tuple((items)))) | |
doc.AddItem("<p>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment