summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-04-09 00:37:50 +0000
committermailman1998-04-09 00:37:50 +0000
commit2f087f96fcda03cb39273d78d07674977dc57634 (patch)
tree2982b1b5acfd986ee550830b2c7f249c7a2df1e3
parent8fc61ae114765c7d49bebdfe541351f6d20a4990 (diff)
downloadmailman-2f087f96fcda03cb39273d78d07674977dc57634.tar.gz
mailman-2f087f96fcda03cb39273d78d07674977dc57634.tar.zst
mailman-2f087f96fcda03cb39273d78d07674977dc57634.zip
Simplify options layout a bit, removing the coloring on the section
separators.
-rwxr-xr-xcgi/admin17
1 files changed, 9 insertions, 8 deletions
diff --git a/cgi/admin b/cgi/admin
index fa16e1779..df0da6a34 100755
--- a/cgi/admin
+++ b/cgi/admin
@@ -194,14 +194,15 @@ def FormatOptionsSection(category, list):
for item in options:
if type(item) == types.StringType:
- big_table.AddRow([Bold(item)])
- if did_col_header:
- # Color the string only when after the colheader.
- big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0),
- 0, colspan=2, bgcolor ="#FFF0D0")
- else:
- big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0),
- 0, colspan=2)
+ # The very first banner option (string in an options list) is
+ # treated as a general description, while any others are
+ # treated as section headers - centered and italicized...
+ if did_col_header:
+ item = "<center><i>" + item + "</i></center>"
+ big_table.AddRow([item])
+ big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0),
+ 0, colspan=2)
+ if not did_col_header:
# Do col header after very first string descr, if any...
ColHeader()
did_col_header = 1